Fixes failing async tests on Linux.

This commit is contained in:
Dominik Picheta
2015-09-11 17:09:13 +01:00
parent 77c2bcf079
commit ac6b21a018
2 changed files with 4 additions and 4 deletions

View File

@@ -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()

View File

@@ -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()