aboutsummaryrefslogtreecommitdiff
path: root/tests/unit_tests/address_from_url.cpp
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2015-06-20 22:41:18 +0200
committerRiccardo Spagni <ric@spagni.net>2015-06-20 22:41:30 +0200
commit1720affbd628db150a67e7ef09817f3f8707ee55 (patch)
treefe9bcf592fa277472ab64595a0f4ef572245cdb0 /tests/unit_tests/address_from_url.cpp
parentMerge pull request #324 (diff)
parentSet dnssec_valid value correctly in dns_utils; fix address_from_url test (diff)
downloadmonero-1720affbd628db150a67e7ef09817f3f8707ee55.tar.xz
Merge pull request #325
3ade396 Set dnssec_valid value correctly in dns_utils; fix address_from_url test (Rostislav)
Diffstat (limited to 'tests/unit_tests/address_from_url.cpp')
-rw-r--r--tests/unit_tests/address_from_url.cpp3
1 files changed, 2 insertions, 1 deletions
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<std::string> 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());
}