diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-08-12 10:16:54 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-08-12 10:16:54 -0700 |
| commit | 9b4d9e71a63cafcee0edee734847bba28d9fea35 (patch) | |
| tree | c65290fb84bf3168af439ef8e92a5f1370aa2ceb /tests/pipeline.c | |
| parent | 0584aa354014e91a9036bc51bad438e8fddaf15f (diff) | |
| download | nng-9b4d9e71a63cafcee0edee734847bba28d9fea35.tar.gz nng-9b4d9e71a63cafcee0edee734847bba28d9fea35.tar.bz2 nng-9b4d9e71a63cafcee0edee734847bba28d9fea35.zip | |
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.
Diffstat (limited to 'tests/pipeline.c')
| -rw-r--r-- | tests/pipeline.c | 7 |
1 files changed, 2 insertions, 5 deletions
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 <string.h> @@ -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(); }) |
