aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2022-10-03 00:00:31 +0100
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2022-10-03 00:00:31 +0100
commit5c9a27a46f4b07f872f850f7e918c10a33595cfd (patch)
treebd5d3a9cb5c1a6a1f9ada7374d04586a0189eca3 /src
parent93001b16a48361ed7fc0cd099c0d827f54e526e1 (diff)
downloadbitcoin-5c9a27a46f4b07f872f850f7e918c10a33595cfd.tar.xz
test: Use proper Boost macros instead of assertions
Diffstat (limited to 'src')
-rw-r--r--src/test/banman_tests.cpp4
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);
}
}
}