mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 14:38:29 +01:00
tests: Remove now-unnecessary manual Unload's
These manual calls to Unload() are no longer necessary because CBlockIndex's no longer live in the heap as of the previous commit.
This commit is contained in:
@@ -72,9 +72,6 @@ BOOST_AUTO_TEST_CASE(validation_chainstate_resize_caches)
|
|||||||
// The view cache should be empty since we had to destruct to downsize.
|
// The view cache should be empty since we had to destruct to downsize.
|
||||||
BOOST_CHECK(!c1.CoinsTip().HaveCoinInCache(outpoint));
|
BOOST_CHECK(!c1.CoinsTip().HaveCoinInCache(outpoint));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Avoid triggering the address sanitizer.
|
|
||||||
WITH_LOCK(::cs_main, manager.Unload());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//! Test UpdateTip behavior for both active and background chainstates.
|
//! Test UpdateTip behavior for both active and background chainstates.
|
||||||
|
|||||||
@@ -99,8 +99,6 @@ BOOST_AUTO_TEST_CASE(chainstatemanager)
|
|||||||
|
|
||||||
// Let scheduler events finish running to avoid accessing memory that is going to be unloaded
|
// Let scheduler events finish running to avoid accessing memory that is going to be unloaded
|
||||||
SyncWithValidationInterfaceQueue();
|
SyncWithValidationInterfaceQueue();
|
||||||
|
|
||||||
WITH_LOCK(::cs_main, manager.Unload());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//! Test rebalancing the caches associated with each chainstate.
|
//! Test rebalancing the caches associated with each chainstate.
|
||||||
|
|||||||
Reference in New Issue
Block a user