unit_tests: avoid nonexistent TLD in DNSSEC test

This commit is contained in:
selsta
2026-07-30 23:00:43 +02:00
parent 0201b677d7
commit 5bd5405266
+2 -2
View File
@@ -109,9 +109,9 @@ TEST(AddressFromURL, Failure)
{
bool dnssec_result = false;
std::vector<std::string> addresses = tools::dns_utils::addresses_from_url("example.veryinvalid", dnssec_result);
std::vector<std::string> addresses = tools::dns_utils::addresses_from_url("nonexistent.getmonero.org", dnssec_result);
// for a non-existing domain such as "example.invalid", the non-existence is proved with NSEC records
// The absence of a TXT record is authenticated with DNSSEC denial records.
ASSERT_TRUE(dnssec_result);
ASSERT_EQ(0, addresses.size());