diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-08-07 23:12:30 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-08-07 23:12:30 -0700 |
| commit | 702fe1d0af4b08a8b53172aaca57394b181d58b2 (patch) | |
| tree | 77eab990266cd49037151150a5c03df62f3e0c02 /tests | |
| parent | ff3018ab3d5c2838f7916c5fedf916f5ce119258 (diff) | |
| download | nng-702fe1d0af4b08a8b53172aaca57394b181d58b2.tar.gz nng-702fe1d0af4b08a8b53172aaca57394b181d58b2.tar.bz2 nng-702fe1d0af4b08a8b53172aaca57394b181d58b2.zip | |
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.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/compat_pipeline.c | 3 |
1 files changed, 3 insertions, 0 deletions
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"); |
