Fix unit test
This commit is contained in:
parent
c6d601c429
commit
f5dc27ba03
|
|
@ -40,7 +40,9 @@ SCENARIO("IpAddress", "[NETWORK][IPADDRESS]")
|
||||||
Nz::IpAddress google(8, 8, 8, 8);
|
Nz::IpAddress google(8, 8, 8, 8);
|
||||||
THEN("Google (DNS) is 8.8.8.8")
|
THEN("Google (DNS) is 8.8.8.8")
|
||||||
{
|
{
|
||||||
CHECK(Nz::IpAddress::ResolveAddress(google) == "google-public-dns-a.google.com");
|
Nz::String dnsAddress = Nz::IpAddress::ResolveAddress(google);
|
||||||
|
bool dnsCheck = dnsAddress == "google-public-dns-a.google.com" || dnsAddress == "dns.google";
|
||||||
|
CHECK(dnsCheck);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue