diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2022-10-03 00:00:31 +0100 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2022-10-03 00:00:31 +0100 |
commit | 5c9a27a46f4b07f872f850f7e918c10a33595cfd (patch) | |
tree | bd5d3a9cb5c1a6a1f9ada7374d04586a0189eca3 /src/test/banman_tests.cpp | |
parent | 93001b16a48361ed7fc0cd099c0d827f54e526e1 (diff) |
test: Use proper Boost macros instead of assertions
Diffstat (limited to 'src/test/banman_tests.cpp')
-rw-r--r-- | src/test/banman_tests.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/banman_tests.cpp b/src/test/banman_tests.cpp index 27ce9ad638..ecf60834ce 100644 --- a/src/test/banman_tests.cpp +++ b/src/test/banman_tests.cpp @@ -27,7 +27,7 @@ BOOST_AUTO_TEST_CASE(file) " { \"version\": 1, \"ban_created\": 0, \"banned_until\": 778, \"address\": \"1.0.0.0/8\" }" "] }", }; - assert(WriteBinaryFile(banlist_path + ".json", entries_write)); + BOOST_REQUIRE(WriteBinaryFile(banlist_path + ".json", entries_write)); { // The invalid entries will be dropped, but the valid one remains ASSERT_DEBUG_LOG("Dropping entry with unparseable address or subnet (aaaaaaaaa) from ban list"); @@ -35,7 +35,7 @@ BOOST_AUTO_TEST_CASE(file) BanMan banman{banlist_path, /*client_interface=*/nullptr, /*default_ban_time=*/0}; banmap_t entries_read; banman.GetBanned(entries_read); - assert(entries_read.size() == 1); + BOOST_CHECK_EQUAL(entries_read.size(), 1); } } } |