aboutsummaryrefslogtreecommitdiff
path: root/tests/pubsub.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-10-31 00:47:21 -0700
committerGarrett D'Amore <garrett@damore.org>2017-10-31 00:47:21 -0700
commit475f4c8abfdd9c88b585105c48839f51d7523d57 (patch)
treef6fa693cd20d1f419ec5a1af0b60ffb798b68b4c /tests/pubsub.c
parentb92320b9afe3771465514286db6ee6746ba512d8 (diff)
downloadnng-475f4c8abfdd9c88b585105c48839f51d7523d57.tar.gz
nng-475f4c8abfdd9c88b585105c48839f51d7523d57.tar.bz2
nng-475f4c8abfdd9c88b585105c48839f51d7523d57.zip
fixes #137 Remove public access to numeric protocols
Diffstat (limited to 'tests/pubsub.c')
-rw-r--r--tests/pubsub.c10
1 files changed, 0 insertions, 10 deletions
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);