disable fragile parts of thttpclient.nim
This commit is contained in:
parent
73b7edf9de
commit
6c7d2ce8fb
1 changed files with 11 additions and 9 deletions
|
|
@ -104,15 +104,17 @@ proc syncTest() =
|
||||||
|
|
||||||
client.close()
|
client.close()
|
||||||
|
|
||||||
# Timeout test.
|
when false:
|
||||||
client = newHttpClient(timeout = 1)
|
# Disabled for now because it causes troubles with AppVeyor
|
||||||
try:
|
# Timeout test.
|
||||||
resp = client.request("http://example.com/")
|
client = newHttpClient(timeout = 1)
|
||||||
doAssert false, "TimeoutError should have been raised."
|
try:
|
||||||
except TimeoutError:
|
resp = client.request("http://example.com/")
|
||||||
discard
|
doAssert false, "TimeoutError should have been raised."
|
||||||
except:
|
except TimeoutError:
|
||||||
doAssert false, "TimeoutError should have been raised."
|
discard
|
||||||
|
except:
|
||||||
|
doAssert false, "TimeoutError should have been raised."
|
||||||
|
|
||||||
proc makeIPv6HttpServer(hostname: string, port: Port): AsyncFD =
|
proc makeIPv6HttpServer(hostname: string, port: Port): AsyncFD =
|
||||||
let fd = newNativeSocket(AF_INET6)
|
let fd = newNativeSocket(AF_INET6)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue