test(windows): add rmSync retries in security prompt teardown

This commit is contained in:
Tom Boucher
2026-05-17 00:46:59 -04:00
parent e7f7465778
commit 8703ab0948

View File

@@ -646,7 +646,7 @@ describe('validatePath: hostile path values are rejected before write', () => {
assert.strictEqual(r.safe, false,
'a symlink whose target is outside the base must fail containment');
// Cleanup the outside dir; the link itself is cleaned by cleanup(tmpDir).
fs.rmSync(outside, { recursive: true, force: true });
fs.rmSync(outside, { recursive: true, force: true, maxRetries: 20, retryDelay: 250 });
});
});