summary refs log tree commit diff stats
path: root/tests/async
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2020-06-12 21:19:23 -0700
committerGitHub <noreply@github.com>2020-06-12 21:19:23 -0700
commitd1498230198888c1b7699ed0b1de12796fd30a7d (patch)
tree1cb0ae5967afe7e99a1bc9539357a8cb18889e06 /tests/async
parent5a26c3799b77e68c6e9d1c90e0dcb614de25206f (diff)
downloadNim-d1498230198888c1b7699ed0b1de12796fd30a7d.tar.gz
fix #13166 tioselectors flaky test on freebsd+OSX (#14634)
Diffstat (limited to 'tests/async')
-rw-r--r--tests/async/tioselectors.nim9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/async/tioselectors.nim b/tests/async/tioselectors.nim
index c20df29e5..f7487525a 100644
--- a/tests/async/tioselectors.nim
+++ b/tests/async/tioselectors.nim
@@ -145,14 +145,15 @@ when not defined(windows):
     proc timer_notification_test(): bool =
       var selector = newSelector[int]()
       var timer = selector.registerTimer(100, false, 0)
-      var rc1 = selector.select(140)
-      var rc2 = selector.select(140)
+      var rc1 = selector.select(10000)
+      var rc2 = selector.select(10000)
+      # if this flakes, see tests/m14634.nim
       assert len(rc1) == 1 and len(rc2) == 1, $(len(rc1), len(rc2))
       selector.unregister(timer)
       discard selector.select(0)
       selector.registerTimer(100, true, 0)
-      var rc4 = selector.select(120)
-      var rc5 = selector.select(120)
+      var rc4 = selector.select(10000)
+      var rc5 = selector.select(1000) # this will be an actual wait, keep it small
       assert len(rc4) == 1 and len(rc5) == 0, $(len(rc4), len(rc5))
       assert(selector.isEmpty())
       selector.close()