mirror of
https://gh-proxy.org/https://github.com/klinsmaya/multica.git
synced 2026-11-09 01:46:46 +08:00
CI runs every backend package concurrently against one database, and IssueWakeupService.Tick dispatches every ready wakeup in it. The handler child_done tests' runWakeupTick therefore dispatched rules owned by concurrently running service tests, consuming their pending receipts mid-assertion: TestIssueWakeupPendingEventsAreBoundedAndLegacyInputsDrain failed on main with "unbounded pending receipts: 1" (reproduced locally 2/40 with the handler tests running alongside, 0/20 alone). Give ListReadyWakeups an optional workspace filter and add TickWorkspaces for tests; production Tick passes no filter and is unchanged. Scope the handler helper, the busy-rule test and the expiry candidate check to the workspaces they own. Co-authored-by: J <[email protected]> Co-authored-by: multica-agent <[email protected]>