summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorDominik Picheta <dominikpicheta@gmail.com>2016-04-04 22:50:31 +0100
committerDominik Picheta <dominikpicheta@gmail.com>2016-04-04 22:50:31 +0100
commit1446dc87c301268869223e32e7efdc9c76711bad (patch)
treec7012fae8f51993b2b4d56c673f047eb31faee46 /tests
parentb22305758dc7c2f1cf7d46173c9f0378a89926f4 (diff)
downloadNim-1446dc87c301268869223e32e7efdc9c76711bad.tar.gz
`await x` where x is Fut var now reads after yield. Fixes #3964.
Diffstat (limited to 'tests')
-rw-r--r--tests/async/tasyncfile.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/async/tasyncfile.nim b/tests/async/tasyncfile.nim
index 05cda5e5f..26a9bb391 100644
--- a/tests/async/tasyncfile.nim
+++ b/tests/async/tasyncfile.nim
@@ -24,7 +24,7 @@ proc main() {.async.} =
     var file = openAsync(fn, fmAppend)
     await file.write("\ntest2")
     let errorTest = file.readAll()
-    await errorTest
+    echo await errorTest
     doAssert errorTest.failed
     file.close()
     file = openAsync(fn, fmRead)