mirror of
https://github.com/ZHANGTIANYAO1/teamspeak-music-bot.git
synced 2026-10-05 06:22:49 +08:00
The bcrypt change-password case runs six bcryptjs rounds (one hash to create the user, four verifies, one hash for the new password). bcryptjs is pure JS, so it takes ~4.5s on an idle machine against vitest's 5s default — and tipped over whenever the full suite saturated the CPU. It read as an intermittent failure but the work is genuinely slow, not hung. The new #149 tests spawn real ffmpeg processes, which added enough CPU pressure to turn an occasional flake into a near-every-run failure, so fix it rather than leave a suite that cries wolf. Raise this one case to 20s. Suite is now stably green across repeated full runs: 138 files / 2109 tests. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>