desktop: ignore error on failure to remove test artifacts

This commit is contained in:
Abdullah Atta
2025-07-21 09:28:26 +05:00
parent 578bc6e546
commit 0f6622360c

View File

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