Skip to content

Commit

Permalink
increase chromium timeout to 100s (#58)
Browse files Browse the repository at this point in the history
Signed-off-by: Zhongnan Su <szhongna@amazon.com>
  • Loading branch information
zhongnansu authored May 25, 2021
1 parent 31bbecb commit f517f3f
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 @@ -158,6 +158,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 @@ -122,7 +122,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 f517f3f

Please sign in to comment.