@@ -40,7 +40,6 @@ use snarkvm_synthesizer_program::FinalizeGlobalState;
4040use anyhow:: Result ;
4141use indexmap:: IndexMap ;
4242use snarkvm_console:: account:: Address ;
43- use tracing_subscriber:: { EnvFilter , fmt, prelude:: __tracing_subscriber_SubscriberExt, util:: SubscriberInitExt } ;
4443use utilities:: * ;
4544
4645#[ cfg( not( feature = "rocks" ) ) ]
@@ -49,10 +48,8 @@ type LedgerType = snarkvm_ledger_store::helpers::memory::ConsensusMemory<Current
4948type LedgerType = snarkvm_ledger_store:: helpers:: rocksdb:: ConsensusDB < CurrentNetwork > ;
5049
5150#[ test]
51+ #[ test_log:: test]
5252fn test_vm_execute_and_finalize ( ) {
53- // Enable logging.
54- tracing_subscriber:: registry ( ) . with ( fmt:: layer ( ) ) . with ( EnvFilter :: from_default_env ( ) ) . init ( ) ;
55-
5653 // Load the tests.
5754 let tests =
5855 load_tests :: < _ , ProgramTest > ( "./tests/vm/execute_and_finalize" , "./expectations/vm/execute_and_finalize" ) ;
@@ -160,6 +157,7 @@ fn run_test(test: &ProgramTest) -> serde_yaml::Mapping {
160157 )
161158 . unwrap ( ) ;
162159 if !aborted_transaction_ids. is_empty ( ) {
160+ // Print the program ID that was aborted.
163161 println ! ( "Aborted program deployment: {:?}" , program. id( ) ) ;
164162 assert ! ( aborted_transaction_ids. is_empty( ) ) ;
165163 }
@@ -355,6 +353,7 @@ fn run_test(test: &ProgramTest) -> serde_yaml::Mapping {
355353 }
356354 } ;
357355 if !aborted_transaction_ids. is_empty ( ) {
356+ // Print the function that was aborted.
358357 println ! ( "Aborted call to {program_id}/{function_name}" ) ;
359358 assert ! ( aborted_transaction_ids. is_empty( ) ) ;
360359 }
0 commit comments