From e2e0f1677c31d8c3f1ebc2a0355dc61dce78481e Mon Sep 17 00:00:00 2001 From: Teknium <127238744+teknium1@users.noreply.github.com> Date: Mon, 10 Aug 2026 17:15:12 -0700 Subject: [PATCH] test: isolate _ACTION_PROCS in #52470 spawn test so lifespan shutdown hooks don't trip on its poll-less fake --- tests/hermes_cli/test_dashboard_admin_endpoints.py | 4 ++++ 1 file changed, 4 insertions(+) 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 = {}