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

Commit

Permalink
Adjust tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lichtso committed Jan 12, 2023
1 parent d9bbe65 commit 689c831
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions programs/sbf/tests/programs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2117,10 +2117,7 @@ fn test_program_sbf_upgrade_and_invoke_in_same_tx() {
bank.last_blockhash(),
);
let (result, _, _) = process_transaction_and_record_inner(&bank, tx);
assert_eq!(
result.unwrap_err(),
TransactionError::InstructionError(2, InstructionError::ProgramFailedToComplete)
);
assert!(result.is_ok());
}

#[test]
Expand Down Expand Up @@ -2459,7 +2456,6 @@ fn test_program_sbf_upgrade_self_via_cpi() {
);

// Call the upgraded program
invoke_instruction.data[0] += 1;
let result =
bank_client.send_and_confirm_instruction(&mint_keypair, invoke_instruction.clone());
assert!(result.is_ok());
Expand Down Expand Up @@ -2494,10 +2490,7 @@ fn test_program_sbf_upgrade_self_via_cpi() {
bank.last_blockhash(),
);
let (result, _, _) = process_transaction_and_record_inner(&bank, tx);
assert_eq!(
result.unwrap_err(),
TransactionError::InstructionError(2, InstructionError::ProgramFailedToComplete)
);
assert!(result.is_ok());
}

#[test]
Expand Down

0 comments on commit 689c831

Please sign in to comment.