diff --git a/tests/by-util/test_env.rs b/tests/by-util/test_env.rs index 4a989bd05..1a1d504a1 100644 --- a/tests/by-util/test_env.rs +++ b/tests/by-util/test_env.rs @@ -52,6 +52,10 @@ impl Target { .spawn() .expect("failed to send signal") .wait(); + // macOS CI needs a longer delay for process teardown after signal delivery + #[cfg(target_os = "macos")] + self.child.delay(500); + #[cfg(not(target_os = "macos"))] self.child.delay(100); } fn is_alive(&mut self) -> bool {