aboutsummaryrefslogtreecommitdiff
path: root/tests/event.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-10-19 15:16:25 -0700
committerGarrett D'Amore <garrett@damore.org>2017-10-19 17:56:49 -0700
commit4e668fdd5b5da0d46f97d835249dbe5f0ea319a7 (patch)
tree0aaad8a672024b3a510763150b167320be6f1f5b /tests/event.c
parentd7e39a2423212a31c5ef62dcb0b7a5b4bf9f34df (diff)
downloadnng-4e668fdd5b5da0d46f97d835249dbe5f0ea319a7.tar.gz
nng-4e668fdd5b5da0d46f97d835249dbe5f0ea319a7.tar.bz2
nng-4e668fdd5b5da0d46f97d835249dbe5f0ea319a7.zip
fixes #84 Consider using msec for durations
There is now a public nng_duration type. We have also updated the zerotier work to work with the signed int64_t's that the latst ZeroTier dev branch is using.
Diffstat (limited to 'tests/event.c')
-rw-r--r--tests/event.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/event.c b/tests/event.c
index 8d7a969f..065b2e16 100644
--- a/tests/event.c
+++ b/tests/event.c
@@ -1,5 +1,6 @@
//
// Copyright 2017 Garrett D'Amore <garrett@damore.org>
+// Copyright 2017 Capitar IT Group BV <info@capitar.com>
//
// This software is supplied under the terms of the MIT License, a
// copy of which should be located in the distribution where this
@@ -103,7 +104,7 @@ TestMain("Event Handling", {
So(nng_dial(sock2, addr, NULL, 0) == 0);
// Let everything connect.
- nng_usleep(100000);
+ nng_msleep(100);
Convey("We can register callbacks", {
So((notify1 = nng_setnotify(sock1, NNG_EV_CAN_SND,
@@ -125,7 +126,7 @@ TestMain("Event Handling", {
// this. Probably the msgq needs to
// toggle on reads.
- // nng_usleep(20000);
+ // nng_msleep(20);
// So(nng_recvmsg(sock2, &msg, 0) ==
// 0);
@@ -134,7 +135,7 @@ TestMain("Event Handling", {
// nng_msg_free(msg);
// The notify runs async...
- nng_usleep(100000);
+ nng_msleep(100);
So(evcnt1.writeable == 1);
So(evcnt2.readable == 1);