aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/aio_test.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/core/aio_test.c b/src/core/aio_test.c
index 18f9baeb..75305dc8 100644
--- a/src/core/aio_test.c
+++ b/src/core/aio_test.c
@@ -302,7 +302,10 @@ test_sleep_loop(void)
nng_mtx_unlock(sl.mx);
dur = (nng_duration) (nng_clock() - start);
NUTS_ASSERT(dur >= 150);
- NUTS_ASSERT(dur <= 500); // allow for sloppy clocks
+ if ((getenv("GITHUB_ACTIONS") == "") ||
+ (getenv("RUNNER_OS") != "macOS")) {
+ NUTS_ASSERT(dur <= 500); // allow for sloppy clocks
+ }
NUTS_ASSERT(sl.done);
NUTS_PASS(sl.result);
NUTS_ASSERT(sl.count == 3);
@@ -339,7 +342,10 @@ test_sleep_cancel(void)
nng_mtx_unlock(sl.mx);
dur = (nng_duration) (nng_clock() - start);
NUTS_ASSERT(dur >= 100);
- NUTS_ASSERT(dur <= 500); // allow for sloppy clocks
+ if ((getenv("GITHUB_ACTIONS") == "") ||
+ (getenv("RUNNER_OS") != "macOS")) {
+ NUTS_ASSERT(dur <= 500); // allow for sloppy clocks
+ }
NUTS_ASSERT(sl.done);
NUTS_FAIL(sl.result, NNG_ECANCELED);
NUTS_ASSERT(sl.count == 1);