diff --git a/tests/hermes_cli/test_dashboard_admin_endpoints.py b/tests/hermes_cli/test_dashboard_admin_endpoints.py index 2f438983d14a6..bee6d444f1aea 100644 --- a/tests/hermes_cli/test_dashboard_admin_endpoints.py +++ b/tests/hermes_cli/test_dashboard_admin_endpoints.py @@ -951,6 +951,10 @@ def test_spawn_hermes_action_scrubs_gateway_loop_guard_env(monkeypatch, tmp_path monkeypatch.setenv("_HERMES_GATEWAY", "1") monkeypatch.setattr(ws, "_ACTION_LOG_DIR", tmp_path) + # Isolate the module-global proc registry: _spawn_hermes_action stores + # _FakeProc (no poll()) in _ACTION_PROCS, and later tests' lifespan + # shutdown (_terminate_desktop_managed_gateway) would trip over it. + monkeypatch.setattr(ws, "_ACTION_PROCS", {}) captured = {}