From be3d68b20f4b7e21da8a80aff7caaf2671015ecd Mon Sep 17 00:00:00 2001 From: ethernet Date: Mon, 21 Sep 2026 20:27:58 -0400 Subject: [PATCH] test: keep the scoped plugin chore out of the drain-scope recording The plugin update check now runs under profile_scoped_chore, so a one-tick housekeeping run binds the launch scope once more before draining. --- tests/gateway/test_cron_delivery_housekeeping.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/gateway/test_cron_delivery_housekeeping.py b/tests/gateway/test_cron_delivery_housekeeping.py index 25212efc4b..d317744ad6 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",