diff --git a/desktop/src-tauri/src/managed_agents/runtime_commands.rs b/desktop/src-tauri/src/managed_agents/runtime_commands.rs index 05dfe735ab..a722219d5c 100644 --- a/desktop/src-tauri/src/managed_agents/runtime_commands.rs +++ b/desktop/src-tauri/src/managed_agents/runtime_commands.rs @@ -648,7 +648,11 @@ mod tests { #[test] fn readiness_is_evaluated_for_the_selected_instance_runtime() { let selected = record_with_command("buzz-agent"); - let unrelated_ready_runtime = record_with_command("/usr/bin/true"); + let unrelated_ready_command = std::env::current_exe() + .expect("current test executable must be available") + .to_string_lossy() + .into_owned(); + let unrelated_ready_runtime = record_with_command(&unrelated_ready_command); let global = super::super::GlobalAgentConfig::default(); assert!(matches!(