Skip to content

Commit

Permalink
Adjusts test_feature_activation_loaded_programs_recompilation_phase().
Browse files Browse the repository at this point in the history
  • Loading branch information
Lichtso committed Oct 27, 2023
1 parent 9891085 commit 5347856
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion runtime/src/bank/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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);
Expand Down

0 comments on commit 5347856

Please sign in to comment.