mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-26 19:23:26 -03:00
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.
This commit is contained in:
parent
8fc3bcf93d
commit
59cc66abb9
1 changed files with 0 additions and 2 deletions
|
@ -947,8 +947,6 @@ BOOST_AUTO_TEST_CASE(load_addrman_corrupted)
|
||||||
} catch (const std::exception&) {
|
} catch (const std::exception&) {
|
||||||
exceptionThrown = true;
|
exceptionThrown = true;
|
||||||
}
|
}
|
||||||
// Even though de-serialization failed addrman is not left in a clean state.
|
|
||||||
BOOST_CHECK(addrman1.Size() == 1);
|
|
||||||
BOOST_CHECK(exceptionThrown);
|
BOOST_CHECK(exceptionThrown);
|
||||||
|
|
||||||
// Test that ReadFromStream fails if peers.dat is corrupt
|
// Test that ReadFromStream fails if peers.dat is corrupt
|
||||||
|
|
Loading…
Add table
Reference in a new issue