From 4c4c0710fbc3725f9a4035f3d1d96e0a3908c716 Mon Sep 17 00:00:00 2001 From: Andrew Fitzgerald Date: Wed, 10 Jul 2024 13:24:32 -0500 Subject: [PATCH] Fix flaky test test_banking_stage_entries_only_central_scheduler (#2082) --- core/src/banking_stage.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/banking_stage.rs b/core/src/banking_stage.rs index 52d4e787d0009b..0cf3cace2f82c0 100644 --- a/core/src/banking_stage.rs +++ b/core/src/banking_stage.rs @@ -1015,7 +1015,7 @@ mod tests { replay_vote_sender, None, Arc::new(ConnectionCache::new("connection_cache_test")), - bank_forks, + bank_forks.clone(), // keep a local-copy of bank-forks so worker threads do not lose weak access to bank-forks &Arc::new(PrioritizationFeeCache::new(0u64)), );