@@ -37,11 +37,13 @@ fn kill_tree_default() {
3737 . spawn ( )
3838 . unwrap ( ) ;
3939 let target_process_id = child. id ( ) ;
40+ thread:: sleep ( Duration :: from_secs ( 1 ) ) ;
4041 tx. send ( target_process_id) . unwrap ( ) ;
4142 let _ = child. wait ( ) ;
4243 } ) ;
4344 let target_process_id = rx. recv ( ) . unwrap ( ) ;
4445 let outputs = kill_tree:: blocking:: kill_tree ( target_process_id) . expect ( "Failed to kill" ) ;
46+ println ! ( "{:?}" , outputs) ;
4547 assert_eq ! ( outputs. len( ) , 1 ) ;
4648 let output = & outputs[ 0 ] ;
4749 match output {
@@ -73,6 +75,7 @@ fn kill_tree_with_config_sigkill() {
7375 . spawn ( )
7476 . unwrap ( ) ;
7577 let target_process_id = child. id ( ) ;
78+ thread:: sleep ( Duration :: from_secs ( 1 ) ) ;
7679 tx. send ( target_process_id) . unwrap ( ) ;
7780 let _ = child. wait ( ) ;
7881 } ) ;
@@ -83,6 +86,7 @@ fn kill_tree_with_config_sigkill() {
8386 } ;
8487 let outputs = kill_tree:: blocking:: kill_tree_with_config ( target_process_id, & config)
8588 . expect ( "Failed to kill" ) ;
89+ println ! ( "{:?}" , outputs) ;
8690 assert_eq ! ( outputs. len( ) , 1 ) ;
8791 let output = & outputs[ 0 ] ;
8892 match output {
@@ -112,8 +116,8 @@ fn kill_tree_with_config_include_target_false() {
112116 . arg ( get_node_script_spawn_infinite_child ( ) )
113117 . spawn ( )
114118 . unwrap ( ) ;
115- thread:: sleep ( Duration :: from_secs ( 1 ) ) ;
116119 let target_process_id = child. id ( ) ;
120+ thread:: sleep ( Duration :: from_secs ( 1 ) ) ;
117121 tx. send ( target_process_id) . unwrap ( ) ;
118122 let _ = child. wait ( ) ;
119123 } ) ;
@@ -124,6 +128,7 @@ fn kill_tree_with_config_include_target_false() {
124128 } ;
125129 let outputs = kill_tree:: blocking:: kill_tree_with_config ( target_process_id, & config)
126130 . expect ( "Failed to kill" ) ;
131+ println ! ( "{:?}" , outputs) ;
127132 assert ! ( !outputs. is_empty( ) ) ;
128133 let output = & outputs[ 0 ] ;
129134 match output {
@@ -141,6 +146,7 @@ fn kill_tree_with_config_include_target_false() {
141146 }
142147 thread:: sleep ( Duration :: from_secs ( 1 ) ) ;
143148 let outputs = kill_tree:: blocking:: kill_tree ( target_process_id) . expect ( "Failed to kill" ) ;
149+ println ! ( "{:?}" , outputs) ;
144150 assert_eq ! ( outputs. len( ) , 1 ) ;
145151 let output = & outputs[ 0 ] ;
146152 match output {
0 commit comments