diff options
author | Ganesh Viswanathan <dev@genotrance.com> | 2018-09-15 14:33:15 -0500 |
---|---|---|
committer | Ganesh Viswanathan <dev@genotrance.com> | 2018-09-15 14:33:15 -0500 |
commit | e4fa1c81cb555a726fa79133bb20e938e8c68b02 (patch) | |
tree | 1185eab4bd2c2e66567c2dba0fe988355595ceb3 /tests/async/tasyncfilewrite.nim | |
parent | b966945ab219e58023cdf85c77804519c96c231e (diff) | |
parent | 0e33a8676e325fa4174893291ed41d59b689c577 (diff) | |
download | Nim-e4fa1c81cb555a726fa79133bb20e938e8c68b02.tar.gz |
Merge remote-tracking branch 'upstream/devel' into test-6434
Diffstat (limited to 'tests/async/tasyncfilewrite.nim')
-rw-r--r-- | tests/async/tasyncfilewrite.nim | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/async/tasyncfilewrite.nim b/tests/async/tasyncfilewrite.nim index cda612bae..8439778ca 100644 --- a/tests/async/tasyncfilewrite.nim +++ b/tests/async/tasyncfilewrite.nim @@ -6,12 +6,14 @@ string 3''' # bug #5532 import os, asyncfile, asyncdispatch -removeFile("test.txt") -let f = openAsync("test.txt", fmWrite) +const F = "test_async.txt" + +removeFile(F) +let f = openAsync(F, fmWrite) var futs = newSeq[Future[void]]() for i in 1..3: futs.add(f.write("string " & $i & "\n")) waitFor(all(futs)) f.close() -echo readFile("test.txt") +echo readFile(F) |