From 3ade396406493708da31e69cd3e3b3d1cbb04924 Mon Sep 17 00:00:00 2001 From: Rostislav Date: Sat, 20 Jun 2015 20:02:13 +0000 Subject: Set dnssec_valid value correctly in dns_utils; fix address_from_url test --- tests/unit_tests/address_from_url.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/unit_tests/address_from_url.cpp b/tests/unit_tests/address_from_url.cpp index 99df75d74..807b22008 100644 --- a/tests/unit_tests/address_from_url.cpp +++ b/tests/unit_tests/address_from_url.cpp @@ -109,7 +109,8 @@ TEST(AddressFromURL, Failure) std::vector addresses = tools::wallet2::addresses_from_url("example.invalid", dnssec_result); - ASSERT_FALSE(dnssec_result); + // for a non-existing domain such as "example.invalid", the non-existence is proved with NSEC records + ASSERT_TRUE(dnssec_result); ASSERT_EQ(0, addresses.size()); } -- cgit v1.2.3