summary refs log tree commit diff stats
path: root/tests/async/tfuturestream.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/async/tfuturestream.nim')
-rw-r--r--tests/async/tfuturestream.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/async/tfuturestream.nim b/tests/async/tfuturestream.nim
index 9a8e986a0..d76752b7e 100644
--- a/tests/async/tfuturestream.nim
+++ b/tests/async/tfuturestream.nim
@@ -18,8 +18,8 @@ var fs = newFutureStream[int]()
 
 proc alpha() {.async.} =
   for i in 0 .. 5:
-    await sleepAsync(1000)
     await fs.write(i)
+    await sleepAsync(1000)
 
   echo("Done")
   fs.complete()