From 535b76bb71ae8b8ddf02efb905cba67c4d6d160b Mon Sep 17 00:00:00 2001 From: Andras Schmelczer Date: Sun, 13 Apr 2025 22:06:35 +0100 Subject: [PATCH] Fix E2E --- frontend/test-client/src/cli.ts | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/frontend/test-client/src/cli.ts b/frontend/test-client/src/cli.ts index 9093c69..ce941b0 100644 --- a/frontend/test-client/src/cli.ts +++ b/frontend/test-client/src/cli.ts @@ -131,7 +131,17 @@ process.on("uncaughtException", (error) => { if (slowFileEvents) { return; } - console.error("Uncaught Exception:", error); + + if ( + error instanceof Error && + error.message.includes( + "WebSocket was closed before the connection was established" + ) + ) { + return; + } + + console.error("Uncaught exception:", error); process.exit(1); }); @@ -144,7 +154,7 @@ process.on("unhandledRejection", (error, _promise) => { return; } - console.error("Unhandled Rejection:", error); + console.error("Unhandled rejection:", error); process.exit(1); });