fix: gateway ordering test runs without root access
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user