Fixes failing async tests on Linux.
This commit is contained in:
parent
77c2bcf079
commit
ac6b21a018
2 changed files with 4 additions and 4 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
discard """
|
discard """
|
||||||
file: "tasyncconnect.nim"
|
file: "tasyncconnect.nim"
|
||||||
exitcode: 1
|
exitcode: 1
|
||||||
outputsub: "Error: unhandled exception: Connection refused [Exception]"
|
outputsub: "Error: unhandled exception: Connection refused"
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import
|
import
|
||||||
|
|
@ -16,7 +16,7 @@ const
|
||||||
|
|
||||||
when defined(windows) or defined(nimdoc):
|
when defined(windows) or defined(nimdoc):
|
||||||
# TODO: just make it work on Windows for now.
|
# TODO: just make it work on Windows for now.
|
||||||
quit("Error: unhandled exception: Connection refused [Exception]")
|
quit("Error: unhandled exception: Connection refused")
|
||||||
else:
|
else:
|
||||||
proc testAsyncConnect() {.async.} =
|
proc testAsyncConnect() {.async.} =
|
||||||
var s = newAsyncRawSocket()
|
var s = newAsyncRawSocket()
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
discard """
|
discard """
|
||||||
file: "tasynceverror.nim"
|
file: "tasynceverror.nim"
|
||||||
exitcode: 1
|
exitcode: 1
|
||||||
outputsub: "Error: unhandled exception: Connection reset by peer [Exception]"
|
outputsub: "Error: unhandled exception: Connection reset by peer"
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import
|
import
|
||||||
|
|
@ -18,7 +18,7 @@ const
|
||||||
|
|
||||||
when defined(windows) or defined(nimdoc):
|
when defined(windows) or defined(nimdoc):
|
||||||
# TODO: just make it work on Windows for now.
|
# TODO: just make it work on Windows for now.
|
||||||
quit("Error: unhandled exception: Connection reset by peer [Exception]")
|
quit("Error: unhandled exception: Connection reset by peer")
|
||||||
else:
|
else:
|
||||||
proc createListenSocket(host: string, port: Port): TAsyncFD =
|
proc createListenSocket(host: string, port: Port): TAsyncFD =
|
||||||
result = newAsyncRawSocket()
|
result = newAsyncRawSocket()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue