mirror of https://github.com/garrytan/gstack.git
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:
parent
4906d9094d
commit
980fb1acfc
|
|
@ -26,9 +26,10 @@ describeIfSelected('Skill E2E tests', [
|
||||||
tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'skill-e2e-'));
|
tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'skill-e2e-'));
|
||||||
setupBrowseShims(tmpDir);
|
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' });
|
spawnSync(browseBin, ['goto', testServer.url], { cwd: tmpDir, timeout: 30000, stdio: 'pipe' });
|
||||||
});
|
}, 45_000);
|
||||||
|
|
||||||
afterAll(() => {
|
afterAll(() => {
|
||||||
testServer?.server?.stop();
|
testServer?.server?.stop();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue