use check to investigate #14685 flaky tests/async/t7758.nim (#14689)

This commit is contained in:
Timothee Cour
2020-06-16 15:57:57 -07:00
committed by GitHub
parent 7ded490ec0
commit ff93302f69

View File

@@ -1,4 +1,5 @@
import asyncdispatch
import std/unittest
proc task() {.async.} =
await sleepAsync(40)
@@ -10,6 +11,6 @@ proc main() =
inc(counter)
poll(10)
doAssert counter <= 4
check counter <= 4
for i in 0 .. 4: main()
for i in 0 .. 10: main()