From 17568c0958a76b83323f26b096eea0bbc565fdc6 Mon Sep 17 00:00:00 2001 From: stoffu Date: Tue, 20 Dec 2022 15:40:59 +0900 Subject: [PATCH] unit_tests.AddressFromURL.Failure: fixed seemingly wrong assertion --- tests/unit_tests/address_from_url.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit_tests/address_from_url.cpp b/tests/unit_tests/address_from_url.cpp index 5138ebcabc8..15d62907bc4 100644 --- a/tests/unit_tests/address_from_url.cpp +++ b/tests/unit_tests/address_from_url.cpp @@ -114,7 +114,7 @@ TEST(AddressFromURL, Failure) std::vector addresses = tools::dns_utils::addresses_from_url("example.veryinvalid", dnssec_result); // for a non-existing domain such as "example.invalid", the non-existence is proved with NSEC records - ASSERT_TRUE(dnssec_result); + ASSERT_FALSE(dnssec_result); ASSERT_EQ(0, addresses.size()); }