From e926c650a9ed6154b0514484d68c8711e31931d3 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Wed, 14 Mar 2018 17:15:35 -0700 Subject: [PATCH] Rx completion can run ahead of tx completion! --- tests/aio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/aio.c b/tests/aio.c index 244ae3b91..2aa96de5f 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);