From 93b43f57b79f431c6d87ac33c5263bba97793653 Mon Sep 17 00:00:00 2001 From: Andras Schmelczer Date: Sat, 22 Mar 2025 12:25:31 +0000 Subject: [PATCH] Fix E2E tests --- frontend/test-client/src/cli.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/frontend/test-client/src/cli.ts b/frontend/test-client/src/cli.ts index 25dc855..4747f2a 100644 --- a/frontend/test-client/src/cli.ts +++ b/frontend/test-client/src/cli.ts @@ -132,11 +132,16 @@ process.on("uncaughtException", (error) => { process.exit(1); }); -process.on("unhandledRejection", (reason, _promise) => { +process.on("unhandledRejection", (error, _promise) => { + if (error instanceof Error && error.message === "Sync was reset") { + return; + } + if (slowFileEvents) { return; } - console.error("Unhandled Rejection:", reason); + + console.error("Unhandled Rejection:", error); process.exit(1); });