summary refs log tree commit diff stats
path: root/tests/stdlib/thttpclient.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2017-05-09 17:26:54 +0200
committerAraq <rumpf_a@web.de>2017-05-09 17:26:54 +0200
commitae7fd0fcedd5db50142c6d76fc3b9c3e6dfa3ad7 (patch)
tree2f2a4de9e6041950cae0b66217660ceee24f07a1 /tests/stdlib/thttpclient.nim
parent79b12faf9ec63d04a7b3a58134e27b4ffb60bcaf (diff)
parentfa3436fb657141127038d88431b4aad113c27cf6 (diff)
downloadNim-ae7fd0fcedd5db50142c6d76fc3b9c3e6dfa3ad7.tar.gz
Merge branch 'devel' of github.com:nim-lang/Nim into devel
Diffstat (limited to 'tests/stdlib/thttpclient.nim')
-rw-r--r--tests/stdlib/thttpclient.nim20
1 files changed, 11 insertions, 9 deletions
diff --git a/tests/stdlib/thttpclient.nim b/tests/stdlib/thttpclient.nim
index 40324d92a..c6a857edb 100644
--- a/tests/stdlib/thttpclient.nim
+++ b/tests/stdlib/thttpclient.nim
@@ -104,15 +104,17 @@ proc syncTest() =
 
   client.close()
 
-  # Timeout test.
-  client = newHttpClient(timeout = 1)
-  try:
-    resp = client.request("http://example.com/")
-    doAssert false, "TimeoutError should have been raised."
-  except TimeoutError:
-    discard
-  except:
-    doAssert false, "TimeoutError should have been raised."
+  when false:
+    # Disabled for now because it causes troubles with AppVeyor
+    # Timeout test.
+    client = newHttpClient(timeout = 1)
+    try:
+      resp = client.request("http://example.com/")
+      doAssert false, "TimeoutError should have been raised."
+    except TimeoutError:
+      discard
+    except:
+      doAssert false, "TimeoutError should have been raised."
 
 proc makeIPv6HttpServer(hostname: string, port: Port): AsyncFD =
   let fd = newNativeSocket(AF_INET6)