mirror of
https://github.com/coder/coder.git
synced 2026-06-04 05:28:20 +00:00
f56adf5731
Fixes the flake reported in https://github.com/coder/internal/issues/1474. - Use a `quartz.NewMock` clock for the subscriber with a drain timer trap, so the 200ms relay drain fires only when explicitly advanced — fully deterministic, no wall-clock race - Give each `testutil.Eventually` call its own context so one slow assertion cannot starve subsequent ones of their shared 25s deadline > 🤖