aboutsummaryrefslogtreecommitdiff
path: root/tests/trantest.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2024-11-23 07:37:52 -0800
committerGarrett D'Amore <garrett@damore.org>2024-11-23 07:37:52 -0800
commitf443b871afb66edfe1589ea45228915bab489c22 (patch)
treed830d25e77ce632386b352e22dc39890cf61c2b7 /tests/trantest.h
parentf6cb6cbb13364cc42f6f1d206f114539763de7b3 (diff)
downloadnng-f443b871afb66edfe1589ea45228915bab489c22.tar.gz
nng-f443b871afb66edfe1589ea45228915bab489c22.tar.bz2
nng-f443b871afb66edfe1589ea45228915bab489c22.zip
tests: Avoid NNG_OPT_TLS in pipe transport test
Diffstat (limited to 'tests/trantest.h')
-rw-r--r--tests/trantest.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/tests/trantest.h b/tests/trantest.h
index 9c3b2efb..783f3767 100644
--- a/tests/trantest.h
+++ b/tests/trantest.h
@@ -244,7 +244,6 @@ trantest_send_recv(trantest *tt)
nng_msg *send;
nng_msg *recv;
size_t len;
- char *url;
So(trantest_listen(tt, &l) == 0);
So(nng_listener_id(l) > 0);
@@ -277,9 +276,6 @@ trantest_send_recv(trantest *tt)
So(strcmp(nng_msg_body(recv), "acknowledge") == 0);
p = nng_msg_get_pipe(recv);
So(nng_pipe_id(p) > 0);
- So(nng_pipe_get_string(p, NNG_OPT_URL, &url) == 0);
- So(strcmp(url, tt->addr) == 0);
- nng_strfree(url);
nng_msg_free(recv);
});
}
@@ -293,7 +289,6 @@ trantest_send_recv_multi(trantest *tt)
nng_pipe p = NNG_PIPE_INITIALIZER;
nng_msg *send;
nng_msg *recv;
- char *url;
int i;
char msgbuf[16];
@@ -331,9 +326,6 @@ trantest_send_recv_multi(trantest *tt)
So(strcmp(nng_msg_body(recv), msgbuf) == 0);
p = nng_msg_get_pipe(recv);
So(nng_pipe_id(p) > 0);
- So(nng_pipe_get_string(p, NNG_OPT_URL, &url) == 0);
- So(strcmp(url, tt->addr) == 0);
- nng_strfree(url);
nng_msg_free(recv);
}
});