quit guard test: the unix-only child carries the console note the spawn check reads

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
igneum-labs 2026-10-08 20:37:36 +00:00
parent c00e5dc42e
commit d488b76c34

View file

@ -164,7 +164,7 @@ mod tests {
if cfg!(windows) {
return;
}
let mut child = std::process::Command::new("sleep").arg("100").spawn().unwrap();
let mut child = std::process::Command::new("sleep").arg("100").spawn().unwrap(); // console: a unix-only test child (the test returns above on Windows)
let pid = child.id();
let lines = enforce_pids(&[("node", pid)]);
assert_eq!(lines, vec![format!("QUIT event=forced what=node pid={pid}")]);