Improve asyncdispatch error messages, fix some tests on Windows.
This commit is contained in:
parent
808253370b
commit
77c2bcf079
4 changed files with 36 additions and 20 deletions
|
|
@ -15,7 +15,8 @@ const
|
|||
|
||||
|
||||
when defined(windows) or defined(nimdoc):
|
||||
discard
|
||||
# TODO: just make it work on Windows for now.
|
||||
quit("Error: unhandled exception: Connection refused [Exception]")
|
||||
else:
|
||||
proc testAsyncConnect() {.async.} =
|
||||
var s = newAsyncRawSocket()
|
||||
|
|
|
|||
|
|
@ -17,7 +17,8 @@ const
|
|||
|
||||
|
||||
when defined(windows) or defined(nimdoc):
|
||||
discard
|
||||
# TODO: just make it work on Windows for now.
|
||||
quit("Error: unhandled exception: Connection reset by peer [Exception]")
|
||||
else:
|
||||
proc createListenSocket(host: string, port: Port): TAsyncFD =
|
||||
result = newAsyncRawSocket()
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
discard """
|
||||
file: "tasyncexceptions.nim"
|
||||
exitcode: 1
|
||||
outputsub: "Error: unhandled exception: foobar [Exception]"
|
||||
outputsub: "Error: unhandled exception: foobar"
|
||||
"""
|
||||
import asyncdispatch
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue