Skip to content

Commit

Permalink
more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffwashington committed Nov 1, 2022
1 parent f53aa4f commit 60cb751
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions programs/sbf/tests/programs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1433,16 +1433,20 @@ fn test_program_sbf_invoke_sanity() {
error!("{}", line!());
let (result, inner_instructions, _log_messages) =
process_transaction_and_record_inner(&bank, tx);
let invoked_programs: Vec<Pubkey> = inner_instructions[0]
error!("{}", line!());
let invoked_programs: Vec<Pubkey> = inner_instructions[0]
.iter()
.map(|ix| &message.account_keys[ix.instruction.program_id_index as usize])
.cloned()
.collect();
assert_eq!(invoked_programs, vec![system_program::id()]);
assert_eq!(
error!("{}", line!());
assert_eq!(invoked_programs, vec![system_program::id()]);
error!("{}", line!());
assert_eq!(
result.unwrap_err(),
TransactionError::InstructionError(0, InstructionError::ProgramFailedToComplete)
);
error!("{}", line!());
}
}

Expand Down

0 comments on commit 60cb751

Please sign in to comment.