From 702fe1d0af4b08a8b53172aaca57394b181d58b2 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Mon, 7 Aug 2017 23:12:30 -0700 Subject: compatible pipeline test makes bad timing assumptions. There are no guarantees about message ordering when multiple sockets are involved. Adding a delay doesn't fix the lack of a guarantee, but makes it sufficiently unlikely to be violated to suit our test purposes. --- tests/compat_pipeline.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests') diff --git a/tests/compat_pipeline.c b/tests/compat_pipeline.c index 3587097f..380300f6 100644 --- a/tests/compat_pipeline.c +++ b/tests/compat_pipeline.c @@ -65,7 +65,10 @@ int main () push2 = test_socket (AF_SP, NN_PUSH); test_connect (push2, SOCKET_ADDRESS); + nn_sleep (10); test_send (push1, "ABC"); + + nn_sleep (10); test_send (push2, "DEF"); test_recv (pull1, "ABC"); -- cgit v1.2.3-70-g09d2