Commit 60e1004
authored
test(storage): give the policy suite an explicit harness budget (lidge-jun#732)
seedHome() writes real files and a sqlite fixture per case. On a slow
windows-latest runner those cases take 6-8s against bun's 5s default and fail
deterministically (run 30507689929 failed the same five twice, the second time
after a --failed rerun) while a faster runner passes the identical code —
locally the file is 22 pass in ~100ms.
The sibling storage-cleanup suite already carries { timeout: 20_000 } /
{ timeout: 30_000 } on its seeding-heavy cases with a comment naming the same
cause. This file had no budget at all, so one file-level setDefaultTimeout(30_000)
covers all fifteen seedHome sites. setDefaultTimeout is the existing convention
here (grok-management-api, codex-history-provider, claude-management-api,
server-combo-failover-e2e, subagent-fallback-handle-responses all use 30_000).
Test-harness only: no src/storage change, since nothing indicates the selection
logic is wrong.
Closes lidge-jun#7271 parent 67c731e commit 60e1004
1 file changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
34 | 43 | | |
35 | 44 | | |
36 | 45 | | |
| |||
0 commit comments