Skip to content

Commit 126d467

Browse files
test: keep the browser launch budget under the hook that waits on it
At the hook's own 120s the dynamic import spends part of the budget first, so jest killed the hook before the launch could report why.
1 parent 3a677e7 commit 126d467

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎test/helpers/launchChrome.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ module.exports = async (options) => {
1414
/** @type {import("puppeteer-core").LaunchOptions} */
1515
const launchOptions = {
1616
headless: true,
17-
// every caller budgets 120s for the launch, while puppeteer defaults to
18-
// 30s — which a cold runner exceeds before Chrome prints its WS endpoint
19-
timeout: 120000,
17+
// puppeteer's own 30s default expires on a cold runner before Chrome
18+
// prints its WS endpoint; this stays under the callers' 120s hook budget
19+
timeout: 100000,
2020
args: ["--no-sandbox", "--disable-gpu", "--disable-dev-shm-usage"],
2121
...options
2222
};

0 commit comments

Comments
 (0)