fix test for updated IP addresses

This commit is contained in:
Günter Obiltschnig 2020-01-04 12:55:58 +01:00
parent 5284be25ae
commit 7c177b6f89

View File

@ -68,7 +68,7 @@ void SocketAddressTest::testSocketAddress()
}
SocketAddress sa4("pocoproject.org", 80);
assertTrue (sa4.host().toString() == "104.130.199.50");
assertTrue (sa4.host().toString() == "54.93.62.90");
assertTrue (sa4.port() == 80);
try
@ -119,10 +119,10 @@ void SocketAddressTest::testSocketAddress()
}
SocketAddress sa10("www6.pocoproject.org", 80);
assertTrue (sa10.host().toString() == "104.130.199.50" || sa10.host().toString() == "[2001:4801:7828:101:be76:4eff:fe10:1455]");
assertTrue (sa10.host().toString() == "54.93.62.90" || sa10.host().toString() == "[2001:4801:7828:101:be76:4eff:fe10:1455]");
SocketAddress sa11(SocketAddress::IPv4, "www6.pocoproject.org", 80);
assertTrue (sa11.host().toString() == "104.130.199.50");
assertTrue (sa11.host().toString() == "54.93.62.90");
#ifdef POCO_HAVE_IPv6
try