Skip to content

Commit 59cc66a

Browse files
committed
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.
1 parent 8fc3bcf commit 59cc66a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/test/addrman_tests.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -947,8 +947,6 @@ BOOST_AUTO_TEST_CASE(load_addrman_corrupted)
947947
} catch (const std::exception&) {
948948
exceptionThrown = true;
949949
}
950-
// Even though de-serialization failed addrman is not left in a clean state.
951-
BOOST_CHECK(addrman1.Size() == 1);
952950
BOOST_CHECK(exceptionThrown);
953951

954952
// Test that ReadFromStream fails if peers.dat is corrupt

0 commit comments

Comments
 (0)