From 43eeceb8e5288cb3dfb099c44a12a2bce6cba86a Mon Sep 17 00:00:00 2001 From: cheatfate Date: Thu, 27 Jun 2019 13:12:52 +0300 Subject: [PATCH] Attempt to fix macos timers. --- tests/testtime.nim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/testtime.nim b/tests/testtime.nim index 6ed4031..00401d9 100644 --- a/tests/testtime.nim +++ b/tests/testtime.nim @@ -44,7 +44,9 @@ suite "Asynchronous timers test suite": waitFor(sleepAsync(1000.milliseconds)) let b = Moment.now() let d = b - a - result = (d >= 1000.milliseconds) and (d <= 2_000.milliseconds) + result = (d >= 1000.milliseconds) and (d <= 3000.milliseconds) + if not result: + echo d test "Timer reliability test [" & asyncTimer & "]": check testTimer() == true