aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-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!");