Skip to content

Commit 8027765

Browse files
authored
test(waitgroup): fix tight timeouts (#1874)
1 parent 90bbb49 commit 8027765

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/tools/test_sync.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,14 @@ suite "WaitGroup":
4646
let wg = newWaitGroup(count)
4747

4848
proc countDown() {.async.} =
49-
await sleepAsync(5.millis)
49+
await sleepAsync(10.millis)
5050
wg.done()
5151

5252
for i in 0 ..< count:
5353
asyncSpawn countDown()
5454

5555
check not wg.wait().finished
56-
check await wg.wait().withTimeout(15.millis)
56+
check await wg.wait().withTimeout(200.millis)
5757

5858
asyncTest "wait with interval":
5959
let wg = newWaitGroup(1)

0 commit comments

Comments
 (0)