mirror of
https://github.com/monero-project/monero.git
synced 2025-01-18 07:33:40 +02:00
tests: fix IPv4Success, DNSSECSuccess
"example.com" now has more than one A record
This commit is contained in:
parent
a4a4a1df1d
commit
5f5770a51d
@ -41,15 +41,11 @@ TEST(DNSResolver, IPv4Success)
|
||||
|
||||
auto ips = resolver.get_ipv4("example.com", avail, valid);
|
||||
|
||||
ASSERT_EQ(1, ips.size());
|
||||
|
||||
//ASSERT_STREQ("93.184.216.119", ips[0].c_str());
|
||||
ASSERT_LE(1, ips.size());
|
||||
|
||||
ips = tools::DNSResolver::instance().get_ipv4("example.com", avail, valid);
|
||||
|
||||
ASSERT_EQ(1, ips.size());
|
||||
|
||||
//ASSERT_STREQ("93.184.216.119", ips[0].c_str());
|
||||
ASSERT_LE(1, ips.size());
|
||||
}
|
||||
|
||||
TEST(DNSResolver, IPv4Failure)
|
||||
@ -76,9 +72,7 @@ TEST(DNSResolver, DNSSECSuccess)
|
||||
|
||||
auto ips = resolver.get_ipv4("example.com", avail, valid);
|
||||
|
||||
ASSERT_EQ(1, ips.size());
|
||||
|
||||
//ASSERT_STREQ("93.184.216.119", ips[0].c_str());
|
||||
ASSERT_LE(1, ips.size());
|
||||
|
||||
ASSERT_TRUE(avail);
|
||||
ASSERT_TRUE(valid);
|
||||
|
Loading…
Reference in New Issue
Block a user