test(server): retry locked provider fixture cleanup on Windows

Availability probes already await process completion. Allow bounded filesystem cleanup retries for transient executable locks, matching the neighboring Windows launch tests.
This commit is contained in:
paseo-bot[bot]
2026-11-06 15:05:09 +00:00
parent 616f5e155c
commit 03f0397f5d
@@ -48,7 +48,8 @@ afterEach(() => {
process.env.PATH = originalEnv.PATH;
process.env.PATHEXT = originalEnv.PATHEXT;
for (const dir of tempDirs.splice(0)) {
rmSync(dir, { recursive: true, force: true });
// Windows can briefly retain a lock on the copied executable after its probe exits.
rmSync(dir, { recursive: true, force: true, maxRetries: 5, retryDelay: 100 });
}
});