aboutsummaryrefslogtreecommitdiff
path: root/tests/unit_tests
diff options
context:
space:
mode:
authorRostislav <rostislav@users.noreply.github.com>2015-06-20 20:02:13 +0000
committerRostislav <rostislav@users.noreply.github.com>2015-06-20 20:02:13 +0000
commit3ade396406493708da31e69cd3e3b3d1cbb04924 (patch)
tree1211da4fa1352d76407495527b43f5b1c5c1e0ad /tests/unit_tests
parentMerge pull request #322 (diff)
downloadmonero-3ade396406493708da31e69cd3e3b3d1cbb04924.tar.xz
Set dnssec_valid value correctly in dns_utils; fix address_from_url test
Diffstat (limited to 'tests/unit_tests')
-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());
}