test(server): retry transient Windows cleanup locks

This commit is contained in:
Mohamed Boudra
2026-07-16 14:26:44 +00:00
parent e78b533755
commit daf03bb17f

View File

@@ -19,7 +19,9 @@ describe("bootstrap provider availability", () => {
process.env.PATH = originalEnv.PATH;
process.env.PATHEXT = originalEnv.PATHEXT;
await Promise.all(
tempRoots.splice(0).map((root) => rm(root, { recursive: true, force: true })),
tempRoots
.splice(0)
.map((root) => rm(root, { recursive: true, force: true, maxRetries: 5, retryDelay: 100 })),
);
});