aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-01-07 00:56:31 -0800
committerGarrett D'Amore <garrett@damore.org>2017-01-07 00:56:31 -0800
commitb21a0bf8eb88ae47e1b8e85731ae9afb37988d61 (patch)
tree0269186d75f00348d6ab7c490b7f2987cb7f629a /tests
parent0f9d86fe6931fd2e84651edb046930b62b590df3 (diff)
downloadnng-b21a0bf8eb88ae47e1b8e85731ae9afb37988d61.tar.gz
nng-b21a0bf8eb88ae47e1b8e85731ae9afb37988d61.tar.bz2
nng-b21a0bf8eb88ae47e1b8e85731ae9afb37988d61.zip
Pipeline fixes.
Diffstat (limited to 'tests')
-rw-r--r--tests/pipeline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/pipeline.c b/tests/pipeline.c
index 53f1c50d..c2c774c4 100644
--- a/tests/pipeline.c
+++ b/tests/pipeline.c
@@ -129,6 +129,7 @@ Main({
So(nng_dial(pull1, addr, NULL, NNG_FLAG_SYNCH) == 0);
So(nng_dial(pull2, addr, NULL, NNG_FLAG_SYNCH) == 0);
So(nng_dial(pull3, addr, NULL, NNG_FLAG_SYNCH) == 0);
+ So(nng_shutdown(pull3) == 0);
// So pull3 might not be done accepting yet, but pull1
// and pull2 definitely are, because otherwise the
@@ -148,7 +149,6 @@ Main({
nng_msg_free(abc);
nng_msg_free(def);
- So(nng_recvmsg(pull3, &abc, 0) == NNG_ETIMEDOUT);
So(nng_recvmsg(pull1, &abc, 0) == NNG_ETIMEDOUT);
So(nng_recvmsg(pull2, &abc, 0) == NNG_ETIMEDOUT);
})