diff --git a/tests/temp-tree.ts b/tests/temp-tree.ts index b660cbc5..1ae94736 100644 --- a/tests/temp-tree.ts +++ b/tests/temp-tree.ts @@ -13,6 +13,8 @@ * * `maxRetries` + `retryDelay` is Node's own remedy for exactly this, so every * risky cleanup goes through here instead of repeating the retry inline. + * The same archive cleanup flaked again on 2026-10-28 under a loaded runner, + * so the budget now covers a slower handle release than the original 10×50 ms. * POSIX runs are unaffected: the first attempt succeeds and no retry happens. */ import { rmSync } from 'node:fs' @@ -23,5 +25,5 @@ import { rmSync } from 'node:fs' * @param path - file or directory to remove (missing paths are ignored). */ export function removeTree(path: string): void { - rmSync(path, { recursive: true, force: true, maxRetries: 10, retryDelay: 50 }) + rmSync(path, { recursive: true, force: true, maxRetries: 30, retryDelay: 100 }) }