Skip to content

The agent that grows with you

fix: gateway ordering test runs without root access

Teknium9b0d75ce445b
diff --git a/tests/hermes_cli/test_gateway_service.py b/tests/hermes_cli/test_gateway_service.py
index d97be4f1782..0ef1687906c 100644
--- a/tests/hermes_cli/test_gateway_service.py
+++ b/tests/hermes_cli/test_gateway_service.py
@@ -1296,7 +1296,7 @@ class TestSystemUnitHermesHome:
def test_system_unit_orders_after_target_user_manager(self, monkeypatch, tmp_path):
"""#104893: restart-safe workers need user@<uid>.service; the system unit must not race it at boot."""
- monkeypatch.setattr(Path, "home", staticmethod(lambda: Path("/root")))
+ monkeypatch.setattr(Path, "home", staticmethod(lambda: tmp_path))
monkeypatch.setenv("HERMES_HOME", str(tmp_path / ".hermes"))
monkeypatch.setattr(
gateway_cli, "_system_service_identity",