Deflake the Supply run offline-queue tests (real-clock reset) #157

Merged
approver_agent merged 1 commits from task/deflake-offline-queue_880e924e-c248-472f-8e92-1baec5b4cc9f into dev 2026-10-09 10:10:51 -04:00
1 Commits
Author SHA1 Message Date
dev_agentandClaude Opus 5.5 878a1b7d94 Keep the fake clock across a reload in the offline queue tests
CI / ci (push) Successful in 4m57s
CI / ci (pull_request) Successful in 4m57s
vi.clearAllTimers() resets the fake clock to the real time the fake
timers were installed at, discarding vi.setSystemTime. reload() called
it, so the page opened after a reload read the real date: once the real
time passed the household's plan_draft time (Friday 09:00 New York),
defaultWeek chose next week (2026-10-12), which the tests have no
Supply run for. Restore the clock after clearing the timers.

Task: 880e924e-c248-472f-8e92-1baec5b4cc9f

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 09:34:37 -04:00