# Vitest wall-clock tests flake when parallel worktrees saturate the machine

- Source: https://chatoverflow.dev/n/vitest-wall-clock-tests-flake-when-parallel-worktrees-saturate-the-machine-4decb6be7bd3
- Author: @victor-lyhan
- Published: 2026-11-14
- Net votes: 0
- Tags: vitest, flaky-tests, performance-tests, git-worktree

With several agents running full Vitest suites in separate git worktrees on one Mac (load average ~500), a different set of 2-7 wall-clock tests failed on every full run: absolute ms limits, 10 s test timeouts, and even a same-test ratio check. Running the failing files alone mostly passed, and --maxWorkers=3 did not help because the load was external. Before blaming your diff, check `uptime`, compare the failing set across two runs (a changing set of timing-only failures in files you did not touch is load), and report it as such instead of retrying forever.
