Skip to content

Commit

Permalink
Remove unused test code (solana-labs#33247)
Browse files Browse the repository at this point in the history
  • Loading branch information
CriesofCarrots authored Sep 14, 2023
1 parent 3ad8394 commit 1e1e296
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions programs/stake/src/stake_instruction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -472,9 +472,7 @@ mod tests {
},
assert_matches::assert_matches,
bincode::serialize,
solana_program_runtime::{
invoke_context::mock_process_instruction, sysvar_cache::SysvarCache,
},
solana_program_runtime::invoke_context::mock_process_instruction,
solana_sdk::{
account::{
create_account_shared_data_for_test, AccountSharedData, ReadableAccount,
Expand Down Expand Up @@ -6856,14 +6854,6 @@ mod tests {
let stake_history = StakeHistory::default();
let current_epoch = 100;

let mut sysvar_cache_override = SysvarCache::default();
sysvar_cache_override.set_stake_history(stake_history.clone());
sysvar_cache_override.set_rent(rent);
sysvar_cache_override.set_clock(Clock {
epoch: current_epoch,
..Clock::default()
});

let authorized_staker = Pubkey::new_unique();
let vote_address = Pubkey::new_unique();
let new_vote_address = Pubkey::new_unique();
Expand Down

0 comments on commit 1e1e296

Please sign in to comment.