Skip to content

Commit

Permalink
increase chromium timeout to 100s (opendistro-for-elasticsearch#372)
Browse files Browse the repository at this point in the history
Signed-off-by: Zhongnan Su <[email protected]>
  • Loading branch information
zhongnansu committed Jul 1, 2021
1 parent 021ac32 commit d936252
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 @@ -103,7 +103,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 d936252

Please sign in to comment.