Skip to content

Commit 531dce0

Browse files
committed
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.
1 parent bec86ae commit 531dce0

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

src/test/validation_chainstate_tests.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,6 @@ BOOST_AUTO_TEST_CASE(validation_chainstate_resize_caches)
7272
// The view cache should be empty since we had to destruct to downsize.
7373
BOOST_CHECK(!c1.CoinsTip().HaveCoinInCache(outpoint));
7474
}
75-
76-
// Avoid triggering the address sanitizer.
77-
WITH_LOCK(::cs_main, manager.Unload());
7875
}
7976

8077
//! Test UpdateTip behavior for both active and background chainstates.

src/test/validation_chainstatemanager_tests.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,6 @@ BOOST_AUTO_TEST_CASE(chainstatemanager)
9999

100100
// Let scheduler events finish running to avoid accessing memory that is going to be unloaded
101101
SyncWithValidationInterfaceQueue();
102-
103-
WITH_LOCK(::cs_main, manager.Unload());
104102
}
105103

106104
//! Test rebalancing the caches associated with each chainstate.

0 commit comments

Comments
 (0)