From f1fe597ecafbaf7bf6416fda2903e2fb1b8f4c83 Mon Sep 17 00:00:00 2001 From: Ian Holloway <72767437+IanHollow@users.noreply.github.com> Date: Fri, 23 Oct 2026 22:41:50 -0700 Subject: [PATCH] Resolve Unix restart test helpers through PATH (#424) Assisted-by: OpenAI Codex (GPT-6) Signed-off-by: IanHollow <72767437+IanHollow@users.noreply.github.com> --- crates/native/src/self_update.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/native/src/self_update.rs b/crates/native/src/self_update.rs index f91b8de6..1fd3f974 100644 --- a/crates/native/src/self_update.rs +++ b/crates/native/src/self_update.rs @@ -1072,8 +1072,8 @@ mod tests { fn the_restart_waits_for_the_old_process_to_exit() { let dir = tempfile::tempdir().unwrap(); let marker = dir.path().join("started"); - let mut old = std::process::Command::new("/bin/sleep").arg("1").spawn().unwrap(); - relaunch_after_exit(old.id(), &[std::ffi::OsStr::new("/usr/bin/touch"), marker.as_os_str()]).unwrap(); + let mut old = std::process::Command::new("sleep").arg("1").spawn().unwrap(); + relaunch_after_exit(old.id(), &[std::ffi::OsStr::new("touch"), marker.as_os_str()]).unwrap(); std::thread::sleep(std::time::Duration::from_millis(400)); assert!(!marker.exists(), "started while the old launcher was still running"); old.wait().unwrap();