Files
Martin-Molinero a3e984f347
Syntax Tests / build (push) Has been cancelled
API Tests / build (push) Has been cancelled
Benchmarks / build (push) Has been cancelled
Build & Test Lean / build (push) Has been cancelled
Regression Tests / build (push) Has been cancelled
Report Generator Tests / build (push) Has been cancelled
Research Regression Tests / build (push) Has been cancelled
Python Virtual Environments / build (push) Has been cancelled
Fix flaky TriggersWeeklyScheduledEventsEachWeekLive test (#9547)
The live realtime scan loop paces itself with WaitTillNextSecond, which on
Windows sleeps ~15ms (default timer granularity). The test advances simulated
time 60 minutes per iteration over ~7 weeks (~1200 iterations), so the loop
could take longer than the 15s wait timeout, causing Exit to cut it short
before the last weekly event fired and intermittently dropping the final
expected trigger time.

Time is fully driven by the ManualTimeProvider in tests, so override
WaitTillNextSecond to a no-op in the test handler. The 60-minute stepping is
deterministic regardless of sleeping, so the loop now runs at full speed and
the test passes reliably.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-18 13:38:46 -03:00
..
2020-04-27 17:45:53 -03:00
2022-11-09 17:38:34 -03:00
2020-04-27 17:45:53 -03:00
2020-12-17 12:59:13 -03:00