diff options
| author | Garrett D'Amore <garrett@damore.org> | 2018-04-30 21:41:40 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2018-05-01 12:27:19 -0700 |
| commit | 4998964a435fe0f02a2d81b01fdb837214674e72 (patch) | |
| tree | dc5fe29da0574fc1510ab6f9b23b54ffd68cd97b /tests/tls.c | |
| parent | 63bdb2c28bc185096e579d1922d57cb71ecaa36b (diff) | |
| download | nng-4998964a435fe0f02a2d81b01fdb837214674e72.tar.gz nng-4998964a435fe0f02a2d81b01fdb837214674e72.tar.bz2 nng-4998964a435fe0f02a2d81b01fdb837214674e72.zip | |
fixes #381 Want comparators for various types
Diffstat (limited to 'tests/tls.c')
| -rw-r--r-- | tests/tls.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/tls.c b/tests/tls.c index 71e28deb..8ecf342a 100644 --- a/tests/tls.c +++ b/tests/tls.c @@ -114,7 +114,7 @@ check_props_v4(nng_msg *msg) nng_sockaddr ra; p = nng_msg_get_pipe(msg); - So(p.id > 0); + So(nng_pipe_id(p) > 0); // Typed access So(nng_pipe_getopt_sockaddr(p, NNG_OPT_LOCADDR, &la) == 0); @@ -426,7 +426,7 @@ TestMain("TLS Transport", { So(nng_msg_len(msg) == 6); So(strcmp(nng_msg_body(msg), "hello") == 0); p = nng_msg_get_pipe(msg); - So(p.id > 0); + So(nng_pipe_id(p) > 0); So(nng_pipe_getopt_bool(p, NNG_OPT_TLS_VERIFIED, &b) == 0); So(b == false); nng_msg_free(msg); @@ -468,7 +468,7 @@ TestMain("TLS Transport", { So(nng_msg_len(msg) == 6); So(strcmp(nng_msg_body(msg), "hello") == 0); p = nng_msg_get_pipe(msg); - So(p.id > 0); + So(nng_pipe_id(p) > 0); So(nng_pipe_getopt_bool(p, NNG_OPT_TLS_VERIFIED, &b) == 0); So(b == true); int i; |
