test(codex): harden run-attempt temp cleanup

This commit is contained in:
Vincent Koc
2026-06-29 15:48:41 -07:00
parent 65e4b0a21d
commit 5f4fa97835

View File

@@ -540,6 +540,6 @@ export function setupRunAttemptTestHooks(): void {
vi.useRealTimers();
vi.unstubAllEnvs();
await closeCodexSandboxExecServersForTests();
await fs.rm(tempDir, { recursive: true, force: true });
await fs.rm(tempDir, { recursive: true, force: true, maxRetries: 5, retryDelay: 50 });
});
}