Commit af72d8e
test: raise unit-test timeout to 30s to stop flaky failures
Several unit tests do real git work (init/clone/commit) and filesystem
fixture setup. Under load — busy CI runners, Windows, or parallel suites —
these occasionally exceed Vitest's 5s default and fail with "Test timed out
in 5000ms", which has shown up as intermittent red on Windows CI and locally
when running suites concurrently. The failures are environmental, not logic
bugs (the same tests pass on rerun).
Raise testTimeout/hookTimeout to 30s in vitest.config.ts. Fast tests finish
in milliseconds and are unaffected; only genuinely slow/contended tests get
the headroom. Mirrors the approach already used in vitest.e2e.config.ts
(90s). Verified stable across repeated and concurrent full-suite runs.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 6dd2c8c commit af72d8e
2 files changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
9 | 16 | | |
10 | 17 | | |
11 | 18 | | |
| |||
0 commit comments