fix: add retry to temp dir cleanup for Windows CI

Cherry-picked from upstream c5d33727
This commit is contained in:
iliya 2026-03-25 13:59:27 +02:00
parent 81921abfd4
commit 86d69476c1

View file

@ -10,7 +10,7 @@ describe('SessionSearcher', () => {
afterEach(() => {
for (const dir of tempDirs) {
fs.rmSync(dir, { recursive: true, force: true });
fs.rmSync(dir, { recursive: true, force: true, maxRetries: 3, retryDelay: 100 });
}
tempDirs.length = 0;
});