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 {
133
133
async fn kill_tree_available_max_process_id ( ) {
134
134
let target_process_id = get_available_max_process_id ( ) ;
135
135
let outputs = kill_tree ( target_process_id) . await . expect ( "Failed to kill" ) ;
136
- assert ! ( outputs. len ( ) > 0 ) ;
136
+ assert ! ( ! outputs. is_empty ( ) ) ;
137
137
let output = & outputs[ 0 ] ;
138
138
match output {
139
139
crate :: Output :: Killed { .. } => {
@@ -156,7 +156,7 @@ mod tests {
156
156
let outputs = kill_tree_with_config ( target_process_id, & config)
157
157
. await
158
158
. expect ( "Failed to kill" ) ;
159
- assert ! ( outputs. len ( ) > 0 ) ;
159
+ assert ! ( ! outputs. is_empty ( ) ) ;
160
160
let output = & outputs[ 0 ] ;
161
161
match output {
162
162
crate :: Output :: Killed { .. } => {
@@ -179,6 +179,6 @@ mod tests {
179
179
let outputs = kill_tree_with_config ( target_process_id, & config)
180
180
. await
181
181
. expect ( "Failed to kill" ) ;
182
- assert ! ( outputs. len ( ) == 0 ) ;
182
+ assert ! ( outputs. is_empty ( ) ) ;
183
183
}
184
184
}
You can’t perform that action at this time.
0 commit comments