mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 14:48:08 +02:00
Merge pull request #17095 from timvandermeij/protocol-timeout
Fix the protocol timeout configuration for Puppeteer
This commit is contained in:
commit
b4cd8ad215
1 changed files with 5 additions and 0 deletions
|
@ -907,6 +907,11 @@ async function startBrowser(browserName, startUrl = "") {
|
|||
headless: false,
|
||||
defaultViewport: null,
|
||||
ignoreDefaultArgs: ["--disable-extensions"],
|
||||
// The timeout for individual protocol (CDP) calls should always be lower
|
||||
// than the Jasmine timeout. This way protocol errors are always raised in
|
||||
// the context of the tests that actually triggered them and don't leak
|
||||
// through to other tests (causing unrelated failures or tracebacks).
|
||||
protocolTimeout: /* jasmine.DEFAULT_TIMEOUT_INTERVAL = */ 30000 - 1000,
|
||||
};
|
||||
|
||||
if (!tempDir) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue