test(gateway): give the bare watcher runner the adapter state the gate re-check reads

The pre-dormant gate re-check reads config, adapters and _profile_adapters (an
unreadable set fails awake), so the __new__-built runner fixture now carries the
same relay-only state GatewayRunner.__init__ would.
This commit is contained in:
teknium1
2026-09-18 00:46:36 -07:00
committed by Teknium
parent 2bd0fa4138
commit 2aaa093705

View File

@@ -75,6 +75,11 @@ def _runner_with(
r._draining = draining
r._scale_to_zero_cooldown_until = 0.0
r._scale_to_zero_no_suspend_logged = False
r._scale_to_zero_direct_platform_logged = False
# The pre-dormant gate re-check reads these (relay-only unless a test says otherwise).
r.config = None
r.adapters = {}
r._profile_adapters = {}
r._last_inbound_at = time.time()
r._running_agents = {}
r._background_tasks = set()