Files
SnowLuma/packages
DrSmoothl b5ede95772 test(core): fake timers for group-history walk-back to skip send-gap waits
The walk-back loop enforces a real ~300ms gap between each SsoGetGroupMsg send
(a deliberate process-wide anti-flood throttle). The test paid that gap for
real — up to 300ms x 12 sends per case — making the file ~5.2s.

Install vitest fake timers and drain the queued send-gap timers via
runAllTimersAsync, so the loop/cursor logic runs instantly. The production
throttle is untouched (only the test file changes).

Walk-back test body ~5237ms -> ~4ms; full core suite ~21s -> ~4.4s.
2026-07-02 19:55:50 +08:00
..
2026-07-01 22:15:01 +08:00
2026-07-01 22:15:01 +08:00
2026-07-01 22:15:01 +08:00
2026-07-01 22:15:01 +08:00
2026-07-01 22:15:01 +08:00
2026-07-01 22:15:01 +08:00
2026-07-01 22:15:01 +08:00
2026-07-01 22:15:01 +08:00
2026-07-01 22:15:01 +08:00
2026-07-01 22:15:01 +08:00
2026-07-01 22:15:01 +08:00