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 """
|
||||
file: "tasyncconnect.nim"
|
||||
exitcode: 1
|
||||
outputsub: "Error: unhandled exception: Connection refused [Exception]"
|
||||
outputsub: "Error: unhandled exception: Connection refused"
|
||||
"""
|
||||
|
||||
import
|
||||
|
|
@ -16,7 +16,7 @@ const
|
|||
|
||||
when defined(windows) or defined(nimdoc):
|
||||
# TODO: just make it work on Windows for now.
|
||||
quit("Error: unhandled exception: Connection refused [Exception]")
|
||||
quit("Error: unhandled exception: Connection refused")
|
||||
else:
|
||||
proc testAsyncConnect() {.async.} =
|
||||
var s = newAsyncRawSocket()
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
discard """
|
||||
file: "tasynceverror.nim"
|
||||
exitcode: 1
|
||||
outputsub: "Error: unhandled exception: Connection reset by peer [Exception]"
|
||||
outputsub: "Error: unhandled exception: Connection reset by peer"
|
||||
"""
|
||||
|
||||
import
|
||||
|
|
@ -18,7 +18,7 @@ const
|
|||
|
||||
when defined(windows) or defined(nimdoc):
|
||||
# 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:
|
||||
proc createListenSocket(host: string, port: Port): TAsyncFD =
|
||||
result = newAsyncRawSocket()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue