Skip to content

Commit 9f693e1

Browse files
committed
test(openapi): give the determinism check a chosen timeout
`serializes all documents deterministically` serializes all seven published documents twice — roughly 2MB of JSON — under vitest's 5s default, which is not a budget anyone picked for it. The published specs grew 3.3% on this branch (961KB -> 993KB) from richer descriptions, which is far too small to move a comfortable test and is enough to tip one already sitting just under the cap. Measured at 5.1s in isolation with nothing else running. Raises it to 30s for the openapi suite rather than trimming a real assertion.
1 parent 8ee5955 commit 9f693e1

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

scripts/openapi/vitest.config.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,12 @@ export default defineConfig({
1212
test: {
1313
environment: 'node',
1414
include: ['scripts/openapi/**/*.test.ts'],
15+
/**
16+
* The determinism check serializes all seven published documents twice —
17+
* roughly 2MB of JSON — so it was running against vitest's 5s default
18+
* rather than a budget anyone chose. It already sat just under that on
19+
* staging, and this branch's richer descriptions tip it over.
20+
*/
21+
testTimeout: 30_000,
1522
},
1623
})

0 commit comments

Comments
 (0)