@@ -42,7 +42,11 @@ async fn create_snapshot_works() {
4242 match common:: start_node_inline ( vec ! [
4343 "--no-hardware-benchmarks" ,
4444 "--dev" ,
45+ "--tmp" ,
4546 format!( "--rpc-port={}" , port) . as_str( ) ,
47+ "--no-telemetry" ,
48+ "--no-prometheus" ,
49+ "--rpc-max-response-size=1000" , // Allow large RPC responses for snapshot creation
4650 ] ) {
4751 Ok ( _) => { }
4852 Err ( e) => {
@@ -51,7 +55,7 @@ async fn create_snapshot_works() {
5155 }
5256 } ) ;
5357 // Wait some time to ensure the node is warmed up.
54- std:: thread:: sleep ( Duration :: from_secs ( 90 ) ) ;
58+ std:: thread:: sleep ( Duration :: from_secs ( 180 ) ) ;
5559
5660 // Run the command with tokio
5761 let temp_dir = tempfile:: Builder :: new ( )
@@ -84,6 +88,12 @@ async fn create_snapshot_works() {
8488 let child = create_snapshot ( & ws_url, & snap_file_path, block_hash) ;
8589 let out = child. wait_with_output ( ) . await . unwrap ( ) ;
8690
91+ if !out. status . success ( ) {
92+ eprintln ! ( "\n ❌ create-snapshot failed!" ) ;
93+ eprintln ! ( "Status: {:?}" , out. status) ;
94+ eprintln ! ( "\n Stdout:\n {}" , String :: from_utf8_lossy( & out. stdout) ) ;
95+ eprintln ! ( "\n Stderr:\n {}" , String :: from_utf8_lossy( & out. stderr) ) ;
96+ }
8797 assert ! ( out. status. success( ) ) ;
8898
8999 let snapshot_is_on_disk = Path :: new ( & snap_file_path) . exists ( ) ;
0 commit comments