test: isolate _ACTION_PROCS in #52470 spawn test so lifespan shutdown hooks don't trip on its poll-less fake

This commit is contained in:
Teknium 2026-08-10 17:15:12 -07:00
parent 373631bea1
commit e2e0f1677c
1 changed files with 4 additions and 0 deletions

View File

@ -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 = {}