Commit 2b80dd7a authored by Simon Giesecke's avatar Simon Giesecke

Problem: test_bind used with explicit endpoint where bind_loopback_ipv4 could be used

Solution: use bind_loopback_ipv4 instead
parent 454c0b83
......@@ -87,8 +87,7 @@ void test_app_meta_reqrep ()
TEST_ASSERT_EQUAL_INT (-1, rc);
}
test_bind (rep_sock, "tcp://127.0.0.1:*", connect_address,
sizeof (connect_address));
bind_loopback_ipv4 (rep_sock, connect_address, sizeof connect_address);
l = 0;
rc = zmq_setsockopt (req_sock, ZMQ_LINGER, &l, sizeof (l));
......
......@@ -159,8 +159,7 @@ void test_router_notify_helper (int opt_notify)
TEST_ASSERT_SUCCESS_ERRNO (zmq_setsockopt (
router, ZMQ_ROUTER_NOTIFY, &opt_notify, sizeof (opt_notify)));
test_bind (router, "tcp://127.0.0.1:*", connect_address,
sizeof (connect_address));
bind_loopback_ipv4 (router, connect_address, sizeof connect_address);
void *dealer = test_context_socket (ZMQ_DEALER);
const char *dealer_routing_id = "X";
......@@ -246,8 +245,7 @@ void test_handshake_fail ()
TEST_ASSERT_SUCCESS_ERRNO (zmq_setsockopt (
router, ZMQ_RCVTIMEO, &opt_timeout, sizeof (opt_timeout)));
test_bind (router, "tcp://127.0.0.1:*", connect_address,
sizeof (connect_address));
bind_loopback_ipv4 (router, connect_address, sizeof connect_address);
// send something on raw tcp
void *stream = test_context_socket (ZMQ_STREAM);
......@@ -291,9 +289,7 @@ void test_error_during_multipart ()
TEST_ASSERT_SUCCESS_ERRNO (zmq_setsockopt (
router, ZMQ_MAXMSGSIZE, &opt_maxmsgsize, sizeof (opt_maxmsgsize)));
test_bind (router, "tcp://127.0.0.1:*", connect_address,
sizeof (connect_address));
bind_loopback_ipv4 (router, connect_address, sizeof connect_address);
// setup dealer
void *dealer = test_context_socket (ZMQ_DEALER);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment