From 60cb751de777e0215289987237e6e3d56864e7c6 Mon Sep 17 00:00:00 2001 From: jeff washington Date: Tue, 1 Nov 2022 16:23:08 -0500 Subject: [PATCH] more logs --- programs/sbf/tests/programs.rs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/programs/sbf/tests/programs.rs b/programs/sbf/tests/programs.rs index d350f153664a1e..55d4c647992589 100644 --- a/programs/sbf/tests/programs.rs +++ b/programs/sbf/tests/programs.rs @@ -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 = inner_instructions[0] + error!("{}", line!()); + let invoked_programs: Vec = 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!()); } }