summary refs log tree commit diff stats
path: root/tests/threads/ttryrecv.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/threads/ttryrecv.nim')
-rw-r--r--tests/threads/ttryrecv.nim7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/threads/ttryrecv.nim b/tests/threads/ttryrecv.nim
index 4a98e6c27..fcff94e78 100644
--- a/tests/threads/ttryrecv.nim
+++ b/tests/threads/ttryrecv.nim
@@ -1,17 +1,18 @@
 discard """
+  matrix: "--mm:refc"
   outputsub: "channel is empty"
 """
 
 # bug #1816
 
-from random import random
+from random import rand
 from os import sleep
 
 type PComm = ptr Channel[int]
 
 proc doAction(outC: PComm) {.thread.} =
-  for i in 0.. <5:
-    sleep(random(100))
+  for i in 0 ..< 5:
+    sleep(rand(50))
     send(outC[], i)
 
 var