fix: gateway ordering test runs without root access

This commit is contained in:
Teknium
2026-09-08 10:39:24 -07:00
parent b2aa855b62
commit 9b0d75ce44

View File

@@ -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",