aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2018-03-10 12:53:37 -0800
committerGarrett D'Amore <garrett@damore.org>2018-03-10 12:53:37 -0800
commit3ad3e050704de2ca343848a46dd913b3b84bc287 (patch)
tree2b2c4b34a7229dbe8845d850b9898bf577665e0a /tests
parent6f2ced1d6c3bfd4a4fcbc29701beb42348782a53 (diff)
downloadnng-3ad3e050704de2ca343848a46dd913b3b84bc287.tar.gz
nng-3ad3e050704de2ca343848a46dd913b3b84bc287.tar.bz2
nng-3ad3e050704de2ca343848a46dd913b3b84bc287.zip
fixes #276 decouple NNG and zerotier definitions
Diffstat (limited to 'tests')
-rw-r--r--tests/zt.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/zt.c b/tests/zt.c
index 4009588a..1952ef1b 100644
--- a/tests/zt.c
+++ b/tests/zt.c
@@ -39,10 +39,6 @@ mkdir(const char *path, int mode)
#include <unistd.h>
#endif // WIN32
-#ifndef NNG_TRANSPORT_ZEROTIER
-#define nng_zt_network_status_ok 0
-#endif
-
static int
check_props(nng_msg *msg)
{
@@ -94,7 +90,7 @@ check_props(nng_msg *msg)
z = sizeof(s);
s = 0;
So(nng_pipe_getopt(p, NNG_OPT_ZT_NETWORK_STATUS, &s, &z) == 0);
- So(s == nng_zt_network_status_ok);
+ So(s == NNG_ZT_STATUS_UP);
});
Convey("Ping properties work", {