mirror of
https://github.com/nim-lang/Nim.git
synced 2026-05-05 13:34:46 +00:00
disable fragile parts of thttpclient.nim
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user