From 224dae56a379aa309fca261d61e7e356b14a536f Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Thu, 4 Jan 2018 20:11:38 -0800 Subject: Fix some more leaks, add a generic URL parser. --- tests/trantest.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/trantest.h') 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); -- cgit v1.2.3-70-g09d2