Commit 0862627
committed
fix(tests): keep the preview turn-budget test inside its timeout under CPU load
The four-patch turn-budget test drove 2,400 deltas over a ~300 KB base, about
2.4 s of CPU on an idle machine and 11-15 s at load 150, past the 10 s test
timeout. Pacing already runs on fake timers; the flake was CPU time, not wall
clock. Four 30 s patches at a 500 ms tick still stream ~25 MB uncapped against
the 8 MiB budget, so the test still fails when the cap is removed.1 parent 85402d0 commit 0862627
1 file changed
Lines changed: 7 additions & 1 deletion
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
271 | 277 | | |
272 | 278 | | |
273 | 279 | | |
274 | 280 | | |
275 | | - | |
| 281 | + | |
276 | 282 | | |
277 | 283 | | |
278 | 284 | | |
| |||
0 commit comments