aboutsummaryrefslogtreecommitdiff
path: root/tests/tcp.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tcp.c')
-rw-r--r--tests/tcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tcp.c b/tests/tcp.c
index 3d2ecfc8..d29ceb8d 100644
--- a/tests/tcp.c
+++ b/tests/tcp.c
@@ -30,7 +30,7 @@ check_props_v4(nng_msg *msg)
bool b;
p = nng_msg_get_pipe(msg);
- So(p.id > 0);
+ So(nng_pipe_id(p) > 0);
So(nng_pipe_getopt_sockaddr(p, NNG_OPT_LOCADDR, &la) == 0);
So(la.s_family == NNG_AF_INET);
So(la.s_in.sa_port == htons(trantest_port - 1));