diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2020-02-04 01:31:44 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-04 10:31:44 +0100 |
commit | b20d7e2110d3d8ab406d44f2231120847e6fea05 (patch) | |
tree | 11e98606a81189b8bbbea9fc4985a2a135670860 /tests/stdlib/tnetdial.nim | |
parent | 7e5c07024495e9aa3422cda710a8139dcb2ca4cf (diff) | |
download | Nim-b20d7e2110d3d8ab406d44f2231120847e6fea05.tar.gz |
fix #13132 tnetdial (#13318)
Diffstat (limited to 'tests/stdlib/tnetdial.nim')
-rw-r--r-- | tests/stdlib/tnetdial.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/stdlib/tnetdial.nim b/tests/stdlib/tnetdial.nim index 695150179..3847a239c 100644 --- a/tests/stdlib/tnetdial.nim +++ b/tests/stdlib/tnetdial.nim @@ -2,7 +2,6 @@ discard """ cmd: "nim c --threads:on $file" exitcode: 0 output: "OK" - disabled: "travis" """ import os, net, nativesockets, asyncdispatch @@ -39,10 +38,10 @@ proc testThread() {.thread.} = fd.close() proc test() = + let serverFd = initIPv6Server("::1", port) var t: Thread[void] createThread(t, testThread) - let serverFd = initIPv6Server("::1", port) var done = false serverFd.accept().callback = proc(fut: Future[AsyncFD]) = @@ -58,4 +57,5 @@ proc test() = joinThread(t) +# this would cause #13132 `for i in 0..<10000: test()` test() |