diff options
| author | tobtoht <tob@featherwallet.org> | 2025-01-15 19:52:22 +0100 |
|---|---|---|
| committer | tobtoht <tob@featherwallet.org> | 2025-01-16 13:17:36 +0100 |
| commit | d8e5a17883ee039b6611f52419183a46e544108c (patch) | |
| tree | 31db20e1ec93c90eb7b51481732abdf7cd776edd /tests/unit_tests | |
| parent | 7fb0d2f48daf3de3ce1c0d28c4845a7c3dd97284 (diff) | |
| download | monzero-core-d8e5a17883ee039b6611f52419183a46e544108c.tar.gz monzero-core-d8e5a17883ee039b6611f52419183a46e544108c.tar.xz monzero-core-d8e5a17883ee039b6611f52419183a46e544108c.zip | |
tests: fix IPv4Success, DNSSECSuccess
"example.com" now has more than one A record
Diffstat (limited to 'tests/unit_tests')
| -rw-r--r-- | tests/unit_tests/dns_resolver.cpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/tests/unit_tests/dns_resolver.cpp b/tests/unit_tests/dns_resolver.cpp index d56cbe45b..bc3691e59 100644 --- a/tests/unit_tests/dns_resolver.cpp +++ b/tests/unit_tests/dns_resolver.cpp @@ -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); |
