summary refs log tree commit diff stats
path: root/tests/async/tasynceverror.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/async/tasynceverror.nim')
-rw-r--r--tests/async/tasynceverror.nim9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/async/tasynceverror.nim b/tests/async/tasynceverror.nim
index 5575cfe82..22b4fe9a7 100644
--- a/tests/async/tasynceverror.nim
+++ b/tests/async/tasynceverror.nim
@@ -1,13 +1,13 @@
 discard """
   file: "tasynceverror.nim"
   exitcode: 1
-  outputsub: "Error: unhandled exception: Connection reset by peer [Exception]"
+  outputsub: "Error: unhandled exception: Connection reset by peer"
 """
 
 import
     asyncdispatch,
     asyncnet,
-    rawsockets,
+    nativesockets,
     os
 
 
@@ -17,10 +17,11 @@ 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")
 else:
     proc createListenSocket(host: string, port: Port): TAsyncFD =
-        result = newAsyncRawSocket()
+        result = newAsyncNativeSocket()
 
         SocketHandle(result).setSockOptInt(SOL_SOCKET, SO_REUSEADDR, 1)