From 4e668fdd5b5da0d46f97d835249dbe5f0ea319a7 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Thu, 19 Oct 2017 15:16:25 -0700 Subject: 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. --- tests/event.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tests/event.c') 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 +// Copyright 2017 Capitar IT Group BV // // 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); -- cgit v1.2.3-70-g09d2