From 343a4a25114ce56c24b66f07e891e93676e5b25c Mon Sep 17 00:00:00 2001 From: Antony Date: Sun, 29 Nov 2026 12:49:53 +0530 Subject: [PATCH] test(agent): resolve recorded executable path before comparing --- tests/agent_install.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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"])