From 9b4d9e71a63cafcee0edee734847bba28d9fea35 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 12 Aug 2017 10:16:54 -0700 Subject: Convenience option accesor functions. This adds functions that know about option sizes and make them easier to use. While here I added some validation of those, and cleaned up a few tests slightly. Note that we do not need to use the nng_impl.h for most tests. More of them need to be cleaned up. --- tests/pipeline.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'tests/pipeline.c') diff --git a/tests/pipeline.c b/tests/pipeline.c index 510b7f77..e19faa9a 100644 --- a/tests/pipeline.c +++ b/tests/pipeline.c @@ -8,7 +8,6 @@ // #include "convey.h" -#include "core/nng_impl.h" #include "nng.h" #include @@ -20,8 +19,6 @@ Main({ const char *addr = "inproc://test"; - nni_init(); - Test("PIPELINE (PUSH/PULL) pattern", { Convey("We can create a PUSH socket", { nng_socket push; @@ -166,7 +163,7 @@ Main({ // server couldn't have gotten to the accept. (The // accept logic is single threaded.) Let's wait a bit // though, to ensure that stuff has settled. - nni_usleep(100000); + nng_usleep(100000); So(nng_sendmsg(push, abc, 0) == 0); So(nng_sendmsg(push, def, 0) == 0); @@ -186,5 +183,5 @@ Main({ }); }); - nni_fini(); + nng_fini(); }) -- cgit v1.2.3-70-g09d2