fix: increase beforeAll timeout for browse pre-warm in CI

Bun's default beforeAll timeout is 5s but Chromium launch in CI Docker
can take 10-20s. Set explicit 45s timeout on the beforeAll hook.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Garry Tan
2026-03-23 20:34:19 -07:00
parent 4906d9094d
commit 980fb1acfc
+3 -2
View File
@@ -26,9 +26,10 @@ describeIfSelected('Skill E2E tests', [
tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'skill-e2e-'));
setupBrowseShims(tmpDir);
// Pre-warm the browse server so Chromium is already launched for tests
// Pre-warm the browse server so Chromium is already launched for tests.
// In CI, Chromium can take 10-20s to launch (Docker + --no-sandbox).
spawnSync(browseBin, ['goto', testServer.url], { cwd: tmpDir, timeout: 30000, stdio: 'pipe' });
});
}, 45_000);
afterAll(() => {
testServer?.server?.stop();