Attempt to fix macos timers.

This commit is contained in:
cheatfate 2019-06-27 13:12:52 +03:00
parent 31f4dc3096
commit 43eeceb8e5
No known key found for this signature in database
GPG Key ID: 46ADD633A7201F95
1 changed files with 3 additions and 1 deletions

View File

@ -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