Skip to content

Commit

Permalink
tests: Remove now-unnecessary manual Unload's
Browse files Browse the repository at this point in the history
Summary:
These manual calls to Unload() are no longer necessary because
CBlockIndex's no longer live in the heap as of the previous commit.

This is a partial backport of [[bitcoin/bitcoin#24050 | core#24050]]
bitcoin/bitcoin@531dce0

Depends on D12991

Test Plan: `ninja all check-all`

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D12992
  • Loading branch information
dongcarl authored and PiRK committed Jan 20, 2023
1 parent f378821 commit f225386
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
3 changes: 0 additions & 3 deletions src/test/validation_chainstate_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,6 @@ BOOST_AUTO_TEST_CASE(validation_chainstate_resize_caches) {
// The view cache should be empty since we had to destruct to downsize.
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.
Expand Down
2 changes: 0 additions & 2 deletions src/test/validation_chainstatemanager_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,6 @@ BOOST_AUTO_TEST_CASE(chainstatemanager) {
// Let scheduler events finish running to avoid accessing memory that is
// going to be unloaded
SyncWithValidationInterfaceQueue();

WITH_LOCK(::cs_main, manager.Unload());
}

//! Test rebalancing the caches associated with each chainstate.
Expand Down

0 comments on commit f225386

Please sign in to comment.