Skip to content

The agent that grows with you

test(tools): bind config on the hand-built runner in test_gateway_stop_calls_close

teknium1cdd95c8dcfe3
diff --git a/tests/tools/test_zombie_process_cleanup.py b/tests/tools/test_zombie_process_cleanup.py
index b9e94533997..a00ccb496b4 100644
--- a/tests/tools/test_zombie_process_cleanup.py
+++ b/tests/tools/test_zombie_process_cleanup.py
@@ -196,12 +196,16 @@ class TestGatewayCleanupWiring:
import threading
from unittest.mock import MagicMock, patch
+ from gateway.config import GatewayConfig
from gateway.run import GatewayRunner
runner = object.__new__(GatewayRunner)
runner._running = True
runner._running_agents = {}
runner._running_agents_ts = {}
+ # __init__ always binds ``config``; the shutdown notice now walks every served
+ # profile's configured home channels from it, not just the live adapters.
+ runner.config = GatewayConfig()
runner.adapters = {}
runner._background_tasks = set()
runner._pending_messages = {}