Skip to content

The agent that grows with you

test: keep the scoped plugin chore out of the drain-scope recording

ethernetbe3d68b20f4b
diff --git a/tests/gateway/test_cron_delivery_housekeeping.py b/tests/gateway/test_cron_delivery_housekeeping.py
index 25212efc4be..d317744ad6c 100644
--- a/tests/gateway/test_cron_delivery_housekeeping.py
+++ b/tests/gateway/test_cron_delivery_housekeeping.py
@@ -86,6 +86,9 @@ def test_multiplex_housekeeping_scopes_primary_and_drains_each_profile(
monkeypatch.setattr(gateway_run, "_profile_runtime_scope", fake_scope)
from gateway import run_profile_reconcile
monkeypatch.setattr(run_profile_reconcile, "_mcp_config_reconciler", lambda runner: lambda: None)
+ # The per-tick plugin update chore also binds every served profile's scope; this test
+ # asserts the DRAIN's scope sequence, so keep the chore wrapper out of the recording.
+ monkeypatch.setattr(run_profile_reconcile, "_for_each_served_profile", lambda runner, body: None)
monkeypatch.setattr(
scheduler,
"drain_delivery_queue",