From 53478564fe785100868642e92ec5e8d0b0b27ec6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Mei=C3=9Fner?= Date: Thu, 26 Oct 2023 21:25:44 +0200 Subject: [PATCH] Adjusts test_feature_activation_loaded_programs_recompilation_phase(). --- runtime/src/bank/tests.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/runtime/src/bank/tests.rs b/runtime/src/bank/tests.rs index 333f7b5dbb030b..e5a9114da1d509 100644 --- a/runtime/src/bank/tests.rs +++ b/runtime/src/bank/tests.rs @@ -12510,7 +12510,7 @@ fn test_is_in_slot_hashes_history() { } #[test] -fn test_runtime_feature_enable_with_program_cache() { +fn test_feature_activation_loaded_programs_recompilation_phase() { solana_logger::setup(); // Bank Setup @@ -12520,6 +12520,12 @@ fn test_runtime_feature_enable_with_program_cache() { .remove(&feature_set::reject_callx_r10::id()); let bank_forks = BankForks::new_rw_arc(Bank::new_for_tests(&genesis_config)); let root_bank = bank_forks.read().unwrap().root_bank(); + // Force a recompilation phase to begin immediately + root_bank + .loaded_programs_cache + .write() + .unwrap() + .latest_root_epoch = u64::MAX; // Test a basic transfer let amount = genesis_config.rent.minimum_balance(0);