diff options
author | Vendicated <vendicated@riseup.net> | 2023-02-01 14:13:55 +0100 |
---|---|---|
committer | Vendicated <vendicated@riseup.net> | 2023-02-01 14:13:55 +0100 |
commit | 7b1d03699de7349fdd373b8418cbbc7936970a85 (patch) | |
tree | 74308952965850102e83f8005e5f042fe832e7e0 /test | |
parent | 8b40760187704c9dcdbb95947eaae365266725ee (diff) | |
download | Vencord-7b1d03699de7349fdd373b8418cbbc7936970a85.tar.gz Vencord-7b1d03699de7349fdd373b8418cbbc7936970a85.tar.bz2 Vencord-7b1d03699de7349fdd373b8418cbbc7936970a85.zip |
ci(reporter): Ignore 404/429 errors
Diffstat (limited to 'test')
-rw-r--r-- | test/generateReport.ts | 10 |
1 files 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!"); |