Skip to content

Commit

Permalink
Ignore external url failures in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gauntface authored and renovate[bot] committed Dec 13, 2024
1 parent 8b2f09c commit 2dc9f06
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/runtime-errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ for (const p of pages) {
const consoleErrors = [];
// Catch all failed requests like 4xx..5xx status codes
page.on('requestfailed', request => {
if (!request.url().startsWith(addr)) {
console.warn(`Non-200 reponse from third party site: url: ${request.url()}, errText: ${request.failure().errorText}, method: ${request.method()}`)
return;
}
failedRequests.push(request);
});
// Catch console log errors
Expand Down

0 comments on commit 2dc9f06

Please sign in to comment.