Fix E2E tests

This commit is contained in:
Andras Schmelczer 2025-03-22 12:25:31 +00:00
parent ba90fc0b41
commit 93b43f57b7
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C

View file

@ -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);
});