Skip to content

Commit

Permalink
extra time
Browse files Browse the repository at this point in the history
  • Loading branch information
adamraine committed Oct 17, 2023
1 parent 7a019cb commit 55eac1e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions core/gather/driver/prepare.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ async function enableAsyncStacks(session) {
await enable();

return async () => {
session.setNextProtocolTimeout(120_000);
await session.sendCommand('Debugger.disable');
session.off('Debugger.paused', onDebuggerPaused);
session.off('Page.frameNavigated', onFrameNavigated);
Expand Down
1 change: 1 addition & 0 deletions core/gather/driver/wait-for-condition.js
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,7 @@ async function waitForFullyLoaded(session, networkMonitor, options) {
log.warn('waitFor', 'Timed out waiting for page load. Checking if page is hung...');
if (await isPageHung(session)) {
log.warn('waitFor', 'Page appears to be hung, killing JavaScript...');
session.setNextProtocolTimeout(120_000);

Check warning on line 485 in core/gather/driver/wait-for-condition.js

View check run for this annotation

Codecov / codecov/patch

core/gather/driver/wait-for-condition.js#L485

Added line #L485 was not covered by tests
await session.sendCommand('Emulation.setScriptExecutionDisabled', {value: true});
await session.sendCommand('Runtime.terminateExecution');
throw new LighthouseError(LighthouseError.errors.PAGE_HUNG);
Expand Down

0 comments on commit 55eac1e

Please sign in to comment.