0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-26 23:01:04 +08:00

Problem: test case test_probe_router_router does not receive auto-generated routing id

Solution: add receive call for routing id
This commit is contained in:
Simon Giesecke 2018-08-13 13:26:50 +02:00
parent d78152bf83
commit 062b510b5d

View File

@ -66,11 +66,12 @@ void test_probe_router_router ()
send_string_expect_success (server, "X", ZMQ_SNDMORE);
send_string_expect_success (server, "Hello", 0);
// receive the routing ID, which is auto-generated in this case, since the
// peer did not set one explicitly
TEST_ASSERT_EQUAL_INT (
5, TEST_ASSERT_SUCCESS_ERRNO (zmq_recv (client, buffer, 255, 0)));
// TODO shouldn't this be the following? but that fails, since the content is different (but of length 5)
// recv_string_expect_success (client, "Hello", 0);
recv_string_expect_success (client, "Hello", 0);
test_context_socket_close (server);
test_context_socket_close (client);