From 59cc66abb945c11f30fa571899127275528c5fce Mon Sep 17 00:00:00 2001 From: Martin Zumsande Date: Wed, 1 Feb 2023 10:14:02 -0500 Subject: [PATCH] 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. --- src/test/addrman_tests.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/test/addrman_tests.cpp b/src/test/addrman_tests.cpp index cf7bb776cc3..586cec4081b 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