increase tolerance of `simple heartbeat` test (#1034)

This commit is contained in:
Etan Kissling 2024-03-01 14:06:42 +01:00 committed by GitHub
parent 53e3825e07
commit bd6ead95ef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -22,10 +22,10 @@ when not defined(macosx):
asyncTest "simple heartbeat":
var i = 0
proc t() {.async.} =
heartbeat "shouldn't see this", 30.milliseconds:
heartbeat "shouldn't see this", 50.milliseconds:
i.inc()
let hb = t()
await sleepAsync(300.milliseconds)
await sleepAsync(500.milliseconds)
await hb.cancelAndWait()
check:
i in 9..11