File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
crates/libs/kill_tree/src Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ mod tests {
133133 async fn kill_tree_available_max_process_id ( ) {
134134 let target_process_id = get_available_max_process_id ( ) ;
135135 let outputs = kill_tree ( target_process_id) . await . expect ( "Failed to kill" ) ;
136- assert ! ( outputs. len ( ) > 0 ) ;
136+ assert ! ( ! outputs. is_empty ( ) ) ;
137137 let output = & outputs[ 0 ] ;
138138 match output {
139139 crate :: Output :: Killed { .. } => {
@@ -156,7 +156,7 @@ mod tests {
156156 let outputs = kill_tree_with_config ( target_process_id, & config)
157157 . await
158158 . expect ( "Failed to kill" ) ;
159- assert ! ( outputs. len ( ) > 0 ) ;
159+ assert ! ( ! outputs. is_empty ( ) ) ;
160160 let output = & outputs[ 0 ] ;
161161 match output {
162162 crate :: Output :: Killed { .. } => {
@@ -179,6 +179,6 @@ mod tests {
179179 let outputs = kill_tree_with_config ( target_process_id, & config)
180180 . await
181181 . expect ( "Failed to kill" ) ;
182- assert ! ( outputs. len ( ) == 0 ) ;
182+ assert ! ( outputs. is_empty ( ) ) ;
183183 }
184184}
You can’t perform that action at this time.
0 commit comments