Skip to content

Commit

Permalink
Merge pull request #9709
Browse files Browse the repository at this point in the history
5f5770a tests: fix IPv4Success, DNSSECSuccess (tobtoht)
  • Loading branch information
tobtoht committed Jan 16, 2025
2 parents a4a4a1d + 5f5770a commit 1179269
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions tests/unit_tests/dns_resolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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);
Expand Down

0 comments on commit 1179269

Please sign in to comment.