aboutsummaryrefslogtreecommitdiff
path: root/tests/trantest.h
diff options
context:
space:
mode:
authorEdward Rudd <urkle@outoforder.cc>2021-12-29 10:13:09 -0500
committerGitHub <noreply@github.com>2021-12-29 07:13:09 -0800
commit44fadb7042fbfdf75f20572c59e410f406bb82f4 (patch)
treeaa8380a652d7666f9f51732361494db79ec7114a /tests/trantest.h
parent6cf5acb15147766eebdd6cf2731eacd8e0e31518 (diff)
downloadnng-44fadb7042fbfdf75f20572c59e410f406bb82f4.tar.gz
nng-44fadb7042fbfdf75f20572c59e410f406bb82f4.tar.bz2
nng-44fadb7042fbfdf75f20572c59e410f406bb82f4.zip
don't use deprecated functions in tests (#1560)
Diffstat (limited to 'tests/trantest.h')
-rw-r--r--tests/trantest.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/trantest.h b/tests/trantest.h
index e56d755d..be258e28 100644
--- a/tests/trantest.h
+++ b/tests/trantest.h
@@ -282,7 +282,7 @@ 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_getopt_string(p, NNG_OPT_URL, &url) == 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);
@@ -336,7 +336,7 @@ 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_getopt_string(p, NNG_OPT_URL, &url) == 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);