Commit f4c0b5a
committed
Tests: Trim two tests that crossed the 8 s nextest cap
Both tests passed in isolation but timed out when `./scripts/check.sh` ran them under its full parallel-check contention. The 8 s cap is intentional (see `.config/nextest.toml`); the policy is to refactor the workload, not to bump it. Confirmed by three back-to-back green runs after the change.
- `file_system::volume::in_memory_test::test_concurrent_reads`: 10 tasks × 100 iters (~1 M `RwLock<HashMap>` ops + entry materialisations) → 10 × 25 iters (250 interleavings, still plenty of pressure to surface a race). Was 2.0 s in isolation; trimmed to ~1.25 s, comfortably under cap.
- `file_system::git::m3_tests::commits_listing_cancellation_polls_atomic_flag`: `build_simple_repo(20)` (≈31 `git` shell-outs) → `build_simple_repo(5)`. With the cancel flag pre-set, even 5 commits is enough to prove the walk got cut short (`entries.len() < 5`). The fixture build dominated; the listing call itself is microseconds.
- Also included: an `oxfmt` reflow of the CLAUDE.md selection note that landed in the previous commit (auto-fixed by check.sh).1 parent 5cecfd6 commit f4c0b5a
2 files changed
Lines changed: 18 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | | - | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
133 | 140 | | |
134 | 141 | | |
135 | 142 | | |
| |||
138 | 145 | | |
139 | 146 | | |
140 | 147 | | |
141 | | - | |
142 | | - | |
| 148 | + | |
| 149 | + | |
143 | 150 | | |
144 | 151 | | |
145 | 152 | | |
| |||
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
335 | 335 | | |
336 | 336 | | |
337 | 337 | | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
338 | 345 | | |
339 | 346 | | |
340 | 347 | | |
341 | | - | |
342 | 348 | | |
343 | 349 | | |
344 | 350 | | |
345 | | - | |
| 351 | + | |
346 | 352 | | |
347 | 353 | | |
348 | 354 | | |
| |||
0 commit comments