aboutsummaryrefslogtreecommitdiff
path: root/tests/trantest.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2018-01-04 20:11:38 -0800
committerGarrett D'Amore <garrett@damore.org>2018-01-05 11:20:50 -0800
commit224dae56a379aa309fca261d61e7e356b14a536f (patch)
tree8194d33029d3595457d424a0f2f57fe2d2139199 /tests/trantest.h
parent2ea7ae1ae5755ab72833fdea0dcf8e13e4d91d0d (diff)
downloadnng-224dae56a379aa309fca261d61e7e356b14a536f.tar.gz
nng-224dae56a379aa309fca261d61e7e356b14a536f.tar.bz2
nng-224dae56a379aa309fca261d61e7e356b14a536f.zip
Fix some more leaks, add a generic URL parser.
Diffstat (limited to 'tests/trantest.h')
-rw-r--r--tests/trantest.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/trantest.h b/tests/trantest.h
index 0346e3ff..46eaa7b1 100644
--- a/tests/trantest.h
+++ b/tests/trantest.h
@@ -248,10 +248,11 @@ trantest_listen_accept(trantest *tt)
So(trantest_listen(tt, &l) == 0);
So(l != 0);
+ nng_msleep(200);
d = 0;
So(trantest_dial(tt, &d) == 0);
So(d != 0);
- })
+ });
}
void
@@ -384,6 +385,7 @@ trantest_check_properties(trantest *tt, trantest_proptest_t f)
So(nng_msg_append(send, "props", 5) == 0);
So(nng_sendmsg(tt->reqsock, send, 0) == 0);
+
recv = NULL;
So(nng_recvmsg(tt->repsock, &recv, 0) == 0);
So(recv != NULL);