Skip to content

Commit 802352f

Browse files
committed
Use longer timeouts and more retries
1 parent 2dda979 commit 802352f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

site-validation/external-links.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
jest.setTimeout(10 * 60 * 1000)
1+
jest.setTimeout(120 * 60 * 1000)
22

33
const link = require("linkinator")
44
const status = require("http-status")
@@ -89,7 +89,7 @@ describe("site external links", () => {
8989
timeout: 30 * 1000,
9090
retry: true, // Retry on 429
9191
retryErrors: true, // Retry on 5xx
92-
retryErrorsCount: 6,
92+
retryErrorsCount: 12,
9393
retryErrorsJitter: 8000, // Default is 3000
9494
})
9595
})
@@ -109,7 +109,7 @@ const retryUrl = async url => {
109109
return retry(statusCode)
110110
}
111111
}
112-
return promiseRetry(hitUrl, { retries: 8, minTimeout: 8 * 1000 })
112+
return promiseRetry(hitUrl, { retries: 8, minTimeout: 80 * 1000 })
113113
.then(() => true)
114114
.catch(() => false)
115115
}

0 commit comments

Comments
 (0)