mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-27 07:31:03 +08:00
Add delays in test_connect_rid to allow time for socket to close before address reuse.
This commit is contained in:
parent
be6763e381
commit
26dc643205
1
.gitignore
vendored
1
.gitignore
vendored
@ -86,6 +86,7 @@ tests/test_sub_forward_tipc
|
||||
tests/test_term_endpoint_tipc
|
||||
tests/test_many_sockets
|
||||
tests/test_diffserv
|
||||
tests/test_connect_rid
|
||||
tests/test_srcfd
|
||||
tests/test_stream_disconnect
|
||||
tests/test_proxy_chain
|
||||
|
@ -47,7 +47,8 @@ noinst_PROGRAMS = test_system \
|
||||
test_abstract_ipc \
|
||||
test_many_sockets \
|
||||
test_ipc_wildcard \
|
||||
test_diffserv
|
||||
test_diffserv \
|
||||
test_connect_rid
|
||||
|
||||
if !ON_MINGW
|
||||
noinst_PROGRAMS += test_shutdown_stress \
|
||||
@ -114,6 +115,7 @@ test_abstract_ipc_SOURCES = test_abstract_ipc.cpp
|
||||
test_many_sockets_SOURCES = test_many_sockets.cpp
|
||||
test_ipc_wildcard_SOURCES = test_ipc_wildcard.cpp
|
||||
test_diffserv_SOURCES = test_diffserv.cpp
|
||||
test_connect_rid_SOURCES = test_connect_rid.cpp
|
||||
if !ON_MINGW
|
||||
test_shutdown_stress_SOURCES = test_shutdown_stress.cpp
|
||||
test_pair_ipc_SOURCES = test_pair_ipc.cpp testutil.hpp
|
||||
|
@ -173,7 +173,9 @@ int main (void)
|
||||
ctx = zmq_ctx_new ();
|
||||
assert (ctx);
|
||||
test_stream_2_stream (ctx);
|
||||
msleep(100); // Give time for bound socket to be closed.
|
||||
test_router_2_router (ctx, false);
|
||||
msleep(100); // Give time for bound socket to be closed.
|
||||
test_router_2_router (ctx, true);
|
||||
zmq_ctx_destroy (ctx);
|
||||
printf ("'test_connect_rid' passed");
|
||||
|
Loading…
x
Reference in New Issue
Block a user