mirror of
https://github.com/status-im/nim-chronos.git
synced 2025-02-22 16:08:23 +00:00
Fix testaddress.nim test.
This commit is contained in:
parent
6709d0b78d
commit
5dd9c0b177
@ -94,21 +94,13 @@ when isMainModule:
|
|||||||
check len(taseq) >= 1
|
check len(taseq) >= 1
|
||||||
|
|
||||||
test "resolveTAddress(string) (IPv6 only)":
|
test "resolveTAddress(string) (IPv6 only)":
|
||||||
var hostnames = [
|
var hostnames = ["localhost:443"]
|
||||||
"www.google.com:443",
|
|
||||||
"www.github.com:443",
|
|
||||||
"localhost:443"
|
|
||||||
]
|
|
||||||
for item in hostnames:
|
for item in hostnames:
|
||||||
var taseq = resolveTAddress(item, IpAddressFamily.IPv6)
|
var taseq = resolveTAddress(item, IpAddressFamily.IPv6)
|
||||||
check len(taseq) >= 1
|
check len(taseq) >= 1
|
||||||
|
|
||||||
test "resolveTAddress(string, Port) (IPv6 only)":
|
test "resolveTAddress(string, Port) (IPv6 only)":
|
||||||
var hostnames = [
|
var hostnames = ["localhost"]
|
||||||
"www.google.com",
|
|
||||||
"www.github.com",
|
|
||||||
"localhost"
|
|
||||||
]
|
|
||||||
for item in hostnames:
|
for item in hostnames:
|
||||||
var taseq = resolveTAddress(item, Port(443), IpAddressFamily.IPv6)
|
var taseq = resolveTAddress(item, Port(443), IpAddressFamily.IPv6)
|
||||||
check len(taseq) >= 1
|
check len(taseq) >= 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user