aboutsummaryrefslogtreecommitdiff
path: root/src/core/reconnect_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/reconnect_test.c')
-rw-r--r--src/core/reconnect_test.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/reconnect_test.c b/src/core/reconnect_test.c
index 308a3f78..120f0517 100644
--- a/src/core/reconnect_test.c
+++ b/src/core/reconnect_test.c
@@ -64,6 +64,10 @@ test_reconnect(void)
// Close the listener
NUTS_PASS(nng_listener_close(l));
+ // We need to wait 100 ms, or so, to allow the receiver to
+ // the disconnect.
+ NUTS_SLEEP(100);
+
NUTS_PASS(nng_listen(s1, addr, &l, 0));
NUTS_SEND(s1, "again");
NUTS_RECV(s2, "again");