summary refs log tree commit diff stats
path: root/tests/async
diff options
context:
space:
mode:
authorDominik Picheta <dominikpicheta@googlemail.com>2015-09-11 14:35:42 +0100
committerDominik Picheta <dominikpicheta@googlemail.com>2015-09-11 14:35:42 +0100
commit77c2bcf07983a35a37312ce7bd1fa5069211ec27 (patch)
tree7098e61d9f422836d26575f7d4420a40d4de44e2 /tests/async
parent808253370bac20c96f5ea9fab9bfc33352011562 (diff)
downloadNim-77c2bcf07983a35a37312ce7bd1fa5069211ec27.tar.gz
Improve asyncdispatch error messages, fix some tests on Windows.
Diffstat (limited to 'tests/async')
-rw-r--r--tests/async/tasyncconnect.nim3
-rw-r--r--tests/async/tasynceverror.nim3
-rw-r--r--tests/async/tasyncexceptions.nim2
3 files changed, 5 insertions, 3 deletions
diff --git a/tests/async/tasyncconnect.nim b/tests/async/tasyncconnect.nim
index bc63b8e82..753af9006 100644
--- a/tests/async/tasyncconnect.nim
+++ b/tests/async/tasyncconnect.nim
@@ -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()
diff --git a/tests/async/tasynceverror.nim b/tests/async/tasynceverror.nim
index 5575cfe82..44c4bdee7 100644
--- a/tests/async/tasynceverror.nim
+++ b/tests/async/tasynceverror.nim
@@ -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()
diff --git a/tests/async/tasyncexceptions.nim b/tests/async/tasyncexceptions.nim
index c4379f7d8..aab08e30f 100644
--- a/tests/async/tasyncexceptions.nim
+++ b/tests/async/tasyncexceptions.nim
@@ -1,7 +1,7 @@
 discard """
   file: "tasyncexceptions.nim"
   exitcode: 1
-  outputsub: "Error: unhandled exception: foobar [Exception]"
+  outputsub: "Error: unhandled exception: foobar"
 """
 import asyncdispatch