Skip to content

Commit 0859c84

Browse files
committed
increase navigation timeout for large documents
1 parent bc90211 commit 0859c84

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/rules/links/linkchecker.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ export async function check(sr, done) {
8787

8888
page.on('response', response => {
8989
const url = simplifyURL(response.url());
90+
console.log(url);
9091
const { referer } = response.request().headers();
9192

9293
// check if resource is in same folder as base document
@@ -121,7 +122,7 @@ export async function check(sr, done) {
121122
}
122123
});
123124

124-
await page.goto(sr.url);
125+
await page.goto(sr.url, { waitUntil: 'load', timeout: 60000 });
125126

126127
await browser.close();
127128
done();

0 commit comments

Comments
 (0)