Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
revert changes to sbf tests for delay visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
pgarg66 committed May 8, 2023
1 parent 07b470b commit ddfe184
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions programs/sbf/tests/programs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2068,10 +2068,8 @@ fn test_program_sbf_invoke_in_same_tx_as_redeployment() {
],
);

// load_upgradeable_program sets clock sysvar to 1, which causes the program to be effective
// after 2 slots. So we need to advance the bank client by 2 slots here.
let bank = bank_client
.advance_slot(2, &Pubkey::default())
.advance_slot(1, &Pubkey::default())
.expect("Failed to advance slot");

// Prepare redeployment
Expand Down Expand Up @@ -2165,10 +2163,8 @@ fn test_program_sbf_invoke_in_same_tx_as_undeployment() {
],
);

// load_upgradeable_program sets clock sysvar to 1, which causes the program to be effective
// after 2 slots. So we need to advance the bank client by 2 slots here.
let bank = bank_client
.advance_slot(2, &Pubkey::default())
.advance_slot(1, &Pubkey::default())
.expect("Failed to advance slot");

// Prepare undeployment
Expand Down

0 comments on commit ddfe184

Please sign in to comment.