diff --git a/tests/agent_install.rs b/tests/agent_install.rs index e8a7082..67d7353 100644 --- a/tests/agent_install.rs +++ b/tests/agent_install.rs @@ -74,7 +74,10 @@ fn unattended_registration_preserves_settings_and_uses_the_installed_binary() { assert_eq!(config, serde_json::from_str::(&original).unwrap()); server }; - assert_eq!(server["command"], executable.to_str().unwrap()); + // `current_exe` does not resolve symlinks on macOS (`/var` -> `/private/var`), + // so compare the recorded path after resolving it the same way. + let recorded = Path::new(server["command"].as_str().unwrap()); + assert_eq!(recorded.canonicalize().unwrap(), executable); assert_eq!( server["args"], json!(["--base-url", "https://proofline.sh", "mcp"])