Skip to content

The agent that grows with you

test(cron): desktop ticker scope test reads the live profile enumerator

teknium1aa03d3861246
diff --git a/tests/cron/test_cron_multiplex_desktop_ticker_scope.py b/tests/cron/test_cron_multiplex_desktop_ticker_scope.py
index 31d5dc22da8..579adfa7e11 100644
--- a/tests/cron/test_cron_multiplex_desktop_ticker_scope.py
+++ b/tests/cron/test_cron_multiplex_desktop_ticker_scope.py
@@ -138,7 +138,11 @@ def test_desktop_ticker_gates_on_profile_gateway_running(tmp_path, monkeypatch,
web_server._start_desktop_cron_ticker(threading.Event(), interval=0)
- assert captured.get("profile_homes") == homes
+ # The Desktop hands the scheduler a live enumerator, not a startup snapshot,
+ # so profiles created or deleted while the app runs are picked up per tick.
+ profile_homes = captured.get("profile_homes")
+ assert callable(profile_homes)
+ assert profile_homes() == homes
gate = captured.get("profile_gate")
assert gate is not None, "desktop ticker did not install a profile gate"
for name, home in homes: