aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2018-03-14 17:15:35 -0700
committerGarrett D'Amore <garrett@damore.org>2018-03-14 17:16:45 -0700
commite926c650a9ed6154b0514484d68c8711e31931d3 (patch)
treefcd3c1289c8cfe0904a21dbfdf415e0a755345dd
parentf9cd60ce383ce124a8b87944b3e688889dc8b0e3 (diff)
downloadnng-e926c650a9ed6154b0514484d68c8711e31931d3.tar.gz
nng-e926c650a9ed6154b0514484d68c8711e31931d3.tar.bz2
nng-e926c650a9ed6154b0514484d68c8711e31931d3.zip
Rx completion can run ahead of tx completion!
-rw-r--r--tests/aio.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/aio.c b/tests/aio.c
index 244ae3b9..2aa96de5 100644
--- a/tests/aio.c
+++ b/tests/aio.c
@@ -111,6 +111,7 @@ Main({
nng_aio_set_msg(txaio, m);
nng_send_aio(s1, txaio);
+ nng_aio_wait(txaio);
nng_aio_wait(rxaio);
So(nng_aio_result(rxaio) == 0);