aboutsummaryrefslogtreecommitdiff
path: root/tests/survey.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/survey.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/survey.c')
-rw-r--r--tests/survey.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/tests/survey.c b/tests/survey.c
index d73ae987..f4fab009 100644
--- a/tests/survey.c
+++ b/tests/survey.c
@@ -30,11 +30,6 @@ TestMain("SURVEY pattern", {
Reset({ nng_close(surv); });
- Convey("Protocols match", {
- So(nng_protocol(surv) == NNG_PROTO_SURVEYOR);
- So(nng_peer(surv) == NNG_PROTO_RESPONDENT);
- });
-
Convey("Recv with no survey fails", {
nng_msg *msg;
So(nng_recvmsg(surv, &msg, 0) == NNG_ESTATE);
@@ -57,11 +52,6 @@ TestMain("SURVEY pattern", {
Reset({ nng_close(resp); });
- Convey("Protocols match", {
- So(nng_protocol(resp) == NNG_PROTO_RESPONDENT);
- So(nng_peer(resp) == NNG_PROTO_SURVEYOR);
- });
-
Convey("Send fails with no survey", {
nng_msg *msg;
So(nng_msg_alloc(&msg, 0) == 0);