From 3cdd3a0ab0156df12e8cffd47bb1e8ab604a2428 Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Fri, 16 Aug 2024 01:24:01 -0400 Subject: [PATCH] Possibly I hope --- scripts/generateReport.ts | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/scripts/generateReport.ts b/scripts/generateReport.ts index d58815a2..48c0b0b0 100644 --- a/scripts/generateReport.ts +++ b/scripts/generateReport.ts @@ -76,8 +76,6 @@ const IGNORED_DISCORD_ERRORS = [ "Attempting to set fast connect zstd when unsupported" ] as Array; -let done: boolean = false; - function toCodeBlock(s: string, indentation = 0, isDiscord = false) { s = s.replace(/```/g, "`\u200B`\u200B`"); @@ -266,8 +264,11 @@ page.on("console", async e => { report.badWebpackFinds.push(otherMessage); break; case "Finished test": - done = true; await printReport(); + setTimeout(async () => { + await browser.close(); + process.exit(); + }, 10000); } } } @@ -318,8 +319,3 @@ await page.evaluateOnNewDocument(` `); await page.goto(CANARY ? "https://canary.discord.com/login" : "https://discord.com/login"); - -if (done) { - await browser.close(); - process.exit(); -}