diff --git a/programs/stake-tests/tests/test_move_stake_and_lamports.rs b/programs/stake-tests/tests/test_move_stake_and_lamports.rs index 0a01b706cb2687..5ca4608f4dd27a 100644 --- a/programs/stake-tests/tests/test_move_stake_and_lamports.rs +++ b/programs/stake-tests/tests/test_move_stake_and_lamports.rs @@ -1294,7 +1294,6 @@ async fn test_move_feature_gate_fail( move_dest_type: StakeLifecycle, move_lamports: bool, ) { - panic!("HANA fail"); if !move_lamports && (move_source_type != StakeLifecycle::Active || move_dest_type == StakeLifecycle::Activating) @@ -1352,4 +1351,5 @@ async fn test_move_feature_gate_fail( .await .unwrap_err(); assert_eq!(e, ProgramError::InvalidInstructionData); + panic!("HANA fail"); }