1 parent f8f3bcb commit 2889326Copy full SHA for 2889326
1 file changed
src-tauri/src/windows_process.rs
@@ -544,8 +544,10 @@ mod tests {
544
"server should complete its SIGTERM handler"
545
);
546
assert!(output.contains("graceful-shutdown"), "{output}");
547
+ // Job accounting can reach zero just before the kernel signals
548
+ // the last process handle. Require that signal within a bound.
549
assert_eq!(
- unsafe { WaitForSingleObject(descendant.as_raw_handle(), 0) },
550
+ unsafe { WaitForSingleObject(descendant.as_raw_handle(), 5_000) },
551
WAIT_OBJECT_0
552
553
assert!(process.tree_is_empty().unwrap());
0 commit comments