Fixes failing async tests on Linux.

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

View file

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

View file

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