diff options
| author | JJ Liebig <jonathan.liebig@gmail.com> | 2026-09-13 17:26:30 +0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-13 15:26:30 +0200 |
| commit | 540b20fdf0bb653c6cfed34cc1f3c10c129c99e6 (patch) | |
| tree | de1ad41c4dd65d5c733fc0ca09cf81a980dbd0a3 /scripts/docs/versions.integration.test.ts | |
| parent | 858ad4e37835d45819f3348d521c29af2fa9eb8d (diff) | |
test: relax windows docs snapshot timeout (#4049)
Windows CI runs these documentation contract fixtures under variable load. A degraded runner pushed the preview and versions snapshot integration tests past their 30s ceiling, while a healthy run finishes in seconds. Keep 30s elsewhere and give Windows a 120s ceiling.
Diffstat (limited to 'scripts/docs/versions.integration.test.ts')
| -rw-r--r-- | scripts/docs/versions.integration.test.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/docs/versions.integration.test.ts b/scripts/docs/versions.integration.test.ts index a52be1be..9731d3c0 100644 --- a/scripts/docs/versions.integration.test.ts +++ b/scripts/docs/versions.integration.test.ts @@ -7,6 +7,11 @@ import { tmpdir } from 'node:os'; const script = resolve(import.meta.dir, 'versions.mjs'); const temporaryDirectories: string[] = []; +// The fixture shells out to node and git many times. A healthy Windows runner +// finishes in seconds, but a degraded one can run an order of magnitude slower, +// so keep a generous ceiling instead of making the suite a load-sensitive flake. +const fixtureTimeoutMs = process.platform === 'win32' ? 120_000 : 30_000; + afterEach(async () => { await Promise.all( temporaryDirectories.splice(0).map((path) => rm(path, { recursive: true, force: true })), @@ -103,7 +108,7 @@ describe('documentation release publishing', () => { delete archivedManifest.versions[0].commit; await write(root, 'docs/versions/manifest.json', `${JSON.stringify(archivedManifest)}\n`); expect(() => runScript(root, ['check'])).toThrow(); - }, 30_000); + }, fixtureTimeoutMs); }); async function write(root: string, path: string, content: string) { |
