diff --git a/staking/integration-tests/tests/initialize_pool.rs b/staking/integration-tests/tests/initialize_pool.rs index 7f0c7608..30ee8be2 100644 --- a/staking/integration-tests/tests/initialize_pool.rs +++ b/staking/integration-tests/tests/initialize_pool.rs @@ -152,14 +152,14 @@ fn test_update_reward_program_authority() { assert!(pool_config.reward_program_authority == new_reward_program_authority); // Trying to update the reward program authority without the correct authority should fail - let wrong_authority = Keypair::new(); + let new_reward_program_authority2 = Keypair::new(); assert_anchor_program_error!( update_reward_program_authority( &mut svm, &payer, - &wrong_authority, - new_reward_program_authority + &reward_program_authority, + new_reward_program_authority2.pubkey(), ), IntegrityPoolError::InvalidRewardProgramAuthority, 0