From 7d0d1feea4a34e12b37acdd98cfae091b592fd3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Leclercq?= Date: Sat, 30 Dec 2023 09:02:01 +0100 Subject: [PATCH] Update IpAddress tests It looks like Google changed their dns --- tests/UnitTests/Engine/Network/IpAddressTest.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/tests/UnitTests/Engine/Network/IpAddressTest.cpp b/tests/UnitTests/Engine/Network/IpAddressTest.cpp index 6688de5d3..744c2a77b 100644 --- a/tests/UnitTests/Engine/Network/IpAddressTest.cpp +++ b/tests/UnitTests/Engine/Network/IpAddressTest.cpp @@ -144,14 +144,8 @@ SCENARIO("IpAddress", "[NETWORK][IPADDRESS]") WHEN("We resolve IP to hostname") { - Nz::IpAddress google(8, 8, 8, 8); - THEN("Google (DNS) is 8.8.8.8") - { - std::string dnsAddress = Nz::IpAddress::ResolveAddress(google); - bool dnsCheck = dnsAddress == "google-public-dns-a.google.com" || dnsAddress == "dns.google"; - INFO(dnsAddress); - CHECK(dnsCheck); - } + CHECK(Nz::IpAddress::ResolveAddress(loopbackIpV4) == "localhost"); + CHECK(Nz::IpAddress::ResolveAddress(loopbackIpV6) == "localhost"); } } }