Skip to content

The agent that grows with you

test(relay): make cwd expectation portable

Alex Fournier03616c2e245f
diff --git a/tests/agent/test_relay_cwd.py b/tests/agent/test_relay_cwd.py
index 7932931b4d2..8ebf1e88951 100644
--- a/tests/agent/test_relay_cwd.py
+++ b/tests/agent/test_relay_cwd.py
@@ -83,7 +83,13 @@ def test_gateway_session_key_uses_its_recorded_cwd(monkeypatch):
@pytest.mark.parametrize(
("platform", "backend", "resolved", "expected", "uses_host"),
[
- ("cli", "local", Path("/workspace"), "/workspace", True),
+ (
+ "cli",
+ "local",
+ Path("/workspace"),
+ str(Path("/workspace").resolve()),
+ True,
+ ),
("", "local", Path("."), str(Path.cwd().resolve()), True),
("cli", "ssh", Path("/host"), "", False),
("gateway", "local", Path("/host"), "", False),