From 7b4a0a996aa6ed3e8fbbd9fd0e28811725707605 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 12 Jan 2020 16:11:19 -0800 Subject: Add PUB/SUB test suite. This gets near 100% coverage of the PUB/SUB protocols. The remaining uncovered bits will need to have a mock protocol that runs slower, so that we can inject both back pressure, and also so that we can inject "erroroneous" messages. --- tests/pubsub.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'tests/pubsub.c') diff --git a/tests/pubsub.c b/tests/pubsub.c index 68b7e3a4..14bd20fc 100644 --- a/tests/pubsub.c +++ b/tests/pubsub.c @@ -57,13 +57,6 @@ TestMain("PUB/SUB pattern", { Reset({ nng_close(sub); }); - Convey("Send fails", { - nng_msg *msg; - So(nng_msg_alloc(&msg, 0) == 0); - So(nng_sendmsg(sub, msg, 0) == NNG_ENOTSUP); - nng_msg_free(msg); - }); - Convey("It can subscribe", { So(nng_setopt(sub, NNG_OPT_SUB_SUBSCRIBE, "ABC", 3) == 0); -- cgit v1.2.3-70-g09d2