From 6c7d2ce8fb104af8f880e6a2973c012174604a5c Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Thu, 4 May 2017 22:37:07 +0200 Subject: [PATCH] disable fragile parts of thttpclient.nim --- tests/stdlib/thttpclient.nim | 20 +++++++++++--------- 1 file 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)