fix(3597): add Windows-safe rmSync retry budgets in lint/security tests

This commit is contained in:
Tom Boucher
2026-05-16 13:33:24 -04:00
parent 1a1ad2ec87
commit 02d3cf3033
3 changed files with 3 additions and 3 deletions

View File

@@ -284,7 +284,7 @@ describe('docs-required lint: readFragmentsFromDisk', () => {
fs.mkdirSync(path.join(tmp, '.changeset'), { recursive: true }); fs.mkdirSync(path.join(tmp, '.changeset'), { recursive: true });
fn(tmp); fn(tmp);
} finally { } finally {
fs.rmSync(tmp, { recursive: true, force: true }); fs.rmSync(tmp, { recursive: true, force: true, maxRetries: 20, retryDelay: 250 });
} }
} }

View File

@@ -110,7 +110,7 @@ describe('lint-pr-check-project-dir', () => {
assert.notStrictEqual(result.status, 0); assert.notStrictEqual(result.status, 0);
} finally { } finally {
fs.rmSync(dir, { recursive: true, force: true }); fs.rmSync(dir, { recursive: true, force: true, maxRetries: 20, retryDelay: 250 });
} }
}); });

View File

@@ -69,7 +69,7 @@ function runScript(scriptPath, content, extraArgs) {
stderr: err.stderr || '', stderr: err.stderr || '',
}; };
} finally { } finally {
fs.rmSync(tmpDir, { recursive: true, force: true }); fs.rmSync(tmpDir, { recursive: true, force: true, maxRetries: 20, retryDelay: 250 });
} }
} }