mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-20 14:25:23 +00:00
Fixes failing async tests on Linux.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user