This repository was archived by the owner on Oct 31, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -187,7 +187,7 @@ mod serial_integration {
187187 // Check if config file params are according to env params
188188 let config_contents = std:: fs:: read_to_string ( & config_path) . unwrap ( ) ;
189189 assert ! ( config_contents. contains( "name = \" TEST_NODE_ENV\" " ) ) ;
190- assert ! ( config_contents. contains( "role = \" fullnode \" " ) ) ;
190+ assert ! ( config_contents. contains( "role = \" full-node \" " ) ) ;
191191 assert ! ( config_contents. contains( "subnet = \" topos-env\" " ) ) ;
192192
193193 Ok ( ( ) )
@@ -422,12 +422,13 @@ mod serial_integration {
422422 let pid = cmd. id ( ) . unwrap ( ) ;
423423 let _ = tokio:: time:: sleep ( std:: time:: Duration :: from_secs ( 10 ) ) . await ;
424424
425- let s = System :: new_all ( ) ;
426- if let Some ( process) = s. process ( Pid :: from_u32 ( pid) ) {
427- if process. kill_with ( Signal :: Term ) . is_none ( ) {
428- eprintln ! ( "This signal isn't supported on this platform" ) ;
429- }
430- }
425+ println ! ( "STDOUT: {}" , stdout) ;
426+ let reg = Regex :: new ( r#"Local node is listening on "\/ip4\/.*\/tcp\/9091\/p2p\/"# ) . unwrap ( ) ;
427+ assert ! (
428+ reg. is_match( & stdout) ,
429+ "Expected node 'Local node is listening on…' but instead got:\n ----\n {}\n ----\n " ,
430+ stdout
431+ ) ;
431432
432433 if let Ok ( output) = cmd. wait_with_output ( ) . await {
433434 assert ! ( output. status. success( ) ) ;
You can’t perform that action at this time.
0 commit comments