From 86d6eb99f3d57e89f7c0ca7a1dbb55187d01e52a Mon Sep 17 00:00:00 2001 From: Michael Neale Date: Fri, 18 Sep 2026 18:09:17 +0000 Subject: [PATCH] fix flaky command_hooks_repair_path_when_enabled test (stdin EPIPE race) (#12209) --- crates/goose/src/hooks/mod.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/goose/src/hooks/mod.rs b/crates/goose/src/hooks/mod.rs index 8f600d5cd..8484ddb2e 100644 --- a/crates/goose/src/hooks/mod.rs +++ b/crates/goose/src/hooks/mod.rs @@ -2184,7 +2184,11 @@ mod tests { ) .unwrap(); let helper = login_bin.join("hook-visible-tool"); - std::fs::write(&helper, "#!/bin/sh\nprintf 'hook-visible-tool-ran'\n").unwrap(); + std::fs::write( + &helper, + "#!/bin/sh\ncat > /dev/null\nprintf 'hook-visible-tool-ran'\n", + ) + .unwrap(); #[cfg(unix)] { use std::os::unix::fs::PermissionsExt;