diff options
author | Araq <rumpf_a@web.de> | 2017-05-09 17:26:54 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2017-05-09 17:26:54 +0200 |
commit | ae7fd0fcedd5db50142c6d76fc3b9c3e6dfa3ad7 (patch) | |
tree | 2f2a4de9e6041950cae0b66217660ceee24f07a1 /tests/stdlib/thttpclient.nim | |
parent | 79b12faf9ec63d04a7b3a58134e27b4ffb60bcaf (diff) | |
parent | fa3436fb657141127038d88431b4aad113c27cf6 (diff) | |
download | Nim-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.nim | 20 |
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) |