Skip to content

The agent that grows with you

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

teknium12aaa09370565
diff --git a/tests/gateway/test_scale_to_zero_watcher.py b/tests/gateway/test_scale_to_zero_watcher.py
index 5fa55054e98..43704b59cb3 100644
--- a/tests/gateway/test_scale_to_zero_watcher.py
+++ b/tests/gateway/test_scale_to_zero_watcher.py
@@ -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()