From 475f4c8abfdd9c88b585105c48839f51d7523d57 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Tue, 31 Oct 2017 00:47:21 -0700 Subject: fixes #137 Remove public access to numeric protocols --- tests/pubsub.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'tests/pubsub.c') diff --git a/tests/pubsub.c b/tests/pubsub.c index e79c3f1d..a8209a7d 100644 --- a/tests/pubsub.c +++ b/tests/pubsub.c @@ -30,11 +30,6 @@ TestMain("PUB/SUB pattern", { Reset({ nng_close(pub); }); - Convey("Protocols match", { - So(nng_protocol(pub) == NNG_PROTO_PUB); - So(nng_peer(pub) == NNG_PROTO_SUB); - }); - Convey("Recv fails", { nng_msg *msg; So(nng_recvmsg(pub, &msg, 0) == NNG_ENOTSUP); @@ -47,11 +42,6 @@ TestMain("PUB/SUB pattern", { Reset({ nng_close(sub); }); - Convey("Protocols match", { - So(nng_protocol(sub) == NNG_PROTO_SUB); - So(nng_peer(sub) == NNG_PROTO_PUB); - }); - Convey("Send fails", { nng_msg *msg; So(nng_msg_alloc(&msg, 0) == 0); -- cgit v1.2.3-70-g09d2