Skip to content
This repository has been archived by the owner on Aug 9, 2022. It is now read-only.

Commit

Permalink
increase chromium timeout to 100s (#372)
Browse files Browse the repository at this point in the history
Signed-off-by: Zhongnan Su <[email protected]>
  • Loading branch information
zhongnansu authored May 25, 2021
1 parent 702cd2b commit f013a40
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,5 @@ export const replaceQueryURL = (pageUrl) => {
toDateString + '))',
"'" + toDateFormat.toISOString() + "'))"
);
console.log(`log output queryUrl\n` + queryUrl);
return queryUrl;
};
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export const createVisualReport = async (
});
const page = await browser.newPage();
page.setDefaultNavigationTimeout(0);
page.setDefaultTimeout(60000); // use 60s timeout instead of default 30s
page.setDefaultTimeout(100000); // use 100s timeout instead of default 30s
if (cookie) {
logger.info('domain enables security, use session cookie to access');
await page.setCookie(cookie);
Expand Down

0 comments on commit f013a40

Please sign in to comment.