aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2023-02-01 14:13:55 +0100
committerVendicated <vendicated@riseup.net>2023-02-01 14:13:55 +0100
commit7b1d03699de7349fdd373b8418cbbc7936970a85 (patch)
tree74308952965850102e83f8005e5f042fe832e7e0
parent8b40760187704c9dcdbb95947eaae365266725ee (diff)
downloadVencord-7b1d03699de7349fdd373b8418cbbc7936970a85.tar.gz
Vencord-7b1d03699de7349fdd373b8418cbbc7936970a85.tar.bz2
Vencord-7b1d03699de7349fdd373b8418cbbc7936970a85.zip
ci(reporter): Ignore 404/429 errors
-rw-r--r--test/generateReport.ts10
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!");