mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-17 01:57:11 +00:00
Added test
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user