aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Zumsande <mzumsande@gmail.com>2023-02-01 10:14:02 -0500
committerMartin Zumsande <mzumsande@gmail.com>2023-02-01 10:14:20 -0500
commit59cc66abb945c11f30fa571899127275528c5fce (patch)
treebd88cda52eec81bb4afa25d91c03927c2d60ba23 /src
parent8fc3bcf93d0d6ce2a63def154ddc17ecaa1bef8b (diff)
test: Remove AddrMan unit test that fails consistency checks
Now that Size() performs internal consistency checks, it will rightfully fail (and assert) when dealing with a corrupted AddrMan. Therefore remove this check.
Diffstat (limited to 'src')
-rw-r--r--src/test/addrman_tests.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/test/addrman_tests.cpp b/src/test/addrman_tests.cpp
index cf7bb776cc..586cec4081 100644
--- a/src/test/addrman_tests.cpp
+++ b/src/test/addrman_tests.cpp
@@ -947,8 +947,6 @@ BOOST_AUTO_TEST_CASE(load_addrman_corrupted)
} catch (const std::exception&) {
exceptionThrown = true;
}
- // Even though de-serialization failed addrman is not left in a clean state.
- BOOST_CHECK(addrman1.Size() == 1);
BOOST_CHECK(exceptionThrown);
// Test that ReadFromStream fails if peers.dat is corrupt