Skip to content

Commit b2ebb2e

Browse files
committed
test: add windows
1 parent 4064c3b commit b2ebb2e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/libs/kill_tree/src/windows.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ mod tests {
241241
parent_process_id: 1,
242242
name: "1".to_string(),
243243
};
244-
assert_eq!(child_process_id_map_filter(&process_info), true);
244+
assert!(child_process_id_map_filter(&process_info));
245245
}
246246

247247
#[test]
@@ -251,7 +251,7 @@ mod tests {
251251
parent_process_id: 0,
252252
name: "1".to_string(),
253253
};
254-
assert_eq!(child_process_id_map_filter(&process_info), false);
254+
assert!(!child_process_id_map_filter(&process_info));
255255
}
256256

257257
#[test]
@@ -271,7 +271,7 @@ mod tests {
271271
_ => panic!("Unexpected source: {source:?}",),
272272
}
273273
}
274-
_ => panic!("Unexpected result: {result:?}",),
274+
KillOutput::Killed { process_id } => panic!("Unexpected result: {process_id}"),
275275
}
276276
}
277277

0 commit comments

Comments
 (0)