summary refs log tree commit diff stats
path: root/tests/async
diff options
context:
space:
mode:
authorArne Döring <arne.doering@gmx.net>2018-12-05 19:03:01 +0100
committerAraq <rumpf_a@web.de>2018-12-11 21:23:22 +0100
commita5ecbf823f178c2800d40bcff562bc4eca0f2030 (patch)
tree50c3812eaa7a1100c30623755263d4ef35dd1c3b /tests/async
parentc0c35839cc65717283edda72ce34579b992563ca (diff)
downloadNim-a5ecbf823f178c2800d40bcff562bc4eca0f2030.tar.gz
lots of small changes
Diffstat (limited to 'tests/async')
-rw-r--r--tests/async/t7192.nim2
-rw-r--r--tests/async/tasyncexceptions.nim2
-rw-r--r--tests/async/tasyncrecursion.nim2
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/async/t7192.nim b/tests/async/t7192.nim
index c380f93e1..9ac0e07c0 100644
--- a/tests/async/t7192.nim
+++ b/tests/async/t7192.nim
@@ -9,6 +9,6 @@ import asyncdispatch
 proc testCallback() =
   echo "testCallback()"
 
-when isMainModule:
+when true:
   callSoon(testCallback)
   poll()
diff --git a/tests/async/tasyncexceptions.nim b/tests/async/tasyncexceptions.nim
index 3a34478ca..de61c099d 100644
--- a/tests/async/tasyncexceptions.nim
+++ b/tests/async/tasyncexceptions.nim
@@ -27,7 +27,7 @@ proc serve() {.async.} =
     var fut = await accept()
     await processClient(fut)
 
-when isMainModule:
+when true:
   proc main =
     var fut = serve()
     fut.callback =
diff --git a/tests/async/tasyncrecursion.nim b/tests/async/tasyncrecursion.nim
index c038be640..7c12dbb0e 100644
--- a/tests/async/tasyncrecursion.nim
+++ b/tests/async/tasyncrecursion.nim
@@ -15,7 +15,7 @@ proc asyncRecursionTest*(): Future[int] {.async.} =
     inc(result, await asyncRecursionCycle(i))
     inc(i)
 
-when isMainModule:
+when true:
   setGlobalDispatcher(newDispatcher())
   var i = waitFor asyncRecursionTest()
   echo i