Added test
This commit is contained in:
parent
5e8faaf710
commit
606d8b2f6d
1 changed files with 12 additions and 0 deletions
|
|
@ -154,8 +154,20 @@ proc ipv6Test() =
|
|||
serverFd.closeSocket()
|
||||
client.close()
|
||||
|
||||
proc longTimeoutTest() =
|
||||
# Issue #2753
|
||||
try:
|
||||
var client = newHttpClient(timeout = 1000)
|
||||
var resp = client.request("https://au.yahoo.com")
|
||||
client.close()
|
||||
except AssertionError:
|
||||
doAssert false, "Exceptions should not be raised"
|
||||
except:
|
||||
discard
|
||||
|
||||
syncTest()
|
||||
waitFor(asyncTest())
|
||||
ipv6Test()
|
||||
longTimeoutTest()
|
||||
|
||||
echo "OK"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue