From 7b1d03699de7349fdd373b8418cbbc7936970a85 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Wed, 1 Feb 2023 14:13:55 +0100 Subject: [PATCH] ci(reporter): Ignore 404/429 errors --- test/generateReport.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/test/generateReport.ts b/test/generateReport.ts index a2b54a6..d55cc8a 100644 --- a/test/generateReport.ts +++ b/test/generateReport.ts @@ -186,8 +186,11 @@ page.on("console", async e => { } else if (isDebug) { console.error(e.text()); } else if (level === "error") { - console.error("Got unexpected error", e.text()); - report.otherErrors.push(e.text()); + const text = e.text(); + if (!text.startsWith("Failed to load resource: the server responded with a status of")) { + console.error("Got unexpected error", text); + report.otherErrors.push(text); + } } }); @@ -209,6 +212,7 @@ function runTime(token: string) { // Monkey patch Logger to not log with custom css + // @ts-ignore Vencord.Util.Logger.prototype._log = function (level, levelColor, args) { if (level === "warn" || level === "error") console[level]("[Vencord]", this.name + ":", ...args); @@ -253,6 +257,8 @@ function runTime(token: string) { if (!isWasm) await wreq.e(id as any); + + await new Promise(r => setTimeout(r, 100)); } console.error("[PUP_DEBUG]", "Finished loading chunks!");