Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

desktop: ignore error on failure to remove test artifacts

Abdullah Atta0f6622360c7f
diff --git a/apps/desktop/__tests__/test-override.ts b/apps/desktop/__tests__/test-override.ts
index 92fe56612..698c65d9f 100644
--- a/apps/desktop/__tests__/test-override.ts
+++ b/apps/desktop/__tests__/test-override.ts
@@ -45,6 +45,20 @@ export async function testCleanup(context: TestContext) {
});
}
await ctx.app.close();
- await rm(ctx.userDataDir, { force: true, recursive: true });
- await rm(ctx.outputDir, { force: true, recursive: true });
+ await rm(ctx.userDataDir, {
+ force: true,
+ recursive: true,
+ maxRetries: 3,
+ retryDelay: 5000
+ }).catch(() => {
+ /*ignore */
+ });
+ await rm(ctx.outputDir, {
+ force: true,
+ recursive: true,
+ maxRetries: 3,
+ retryDelay: 5000
+ }).catch(() => {
+ /*ignore */
+ });
}