diff --git a/extensions/browser/src/browser/chrome.test.ts b/extensions/browser/src/browser/chrome.test.ts index c28332e0273..9810b4005b0 100644 --- a/extensions/browser/src/browser/chrome.test.ts +++ b/extensions/browser/src/browser/chrome.test.ts @@ -440,7 +440,7 @@ describe("browser chrome helpers", () => { wsPath: "/devtools/browser/stale-diagnostic", onConnection: (wss) => wss.on("connection", (_ws) => {}), run: async (baseUrl) => { - const diagnostic = await diagnoseChromeCdp(baseUrl, 300, 5); + const diagnostic = await diagnoseChromeCdp(baseUrl, 300, 50); expect(diagnostic).toMatchObject({ ok: false, code: "websocket_health_command_timeout", diff --git a/test/helpers/temp-repo.ts b/test/helpers/temp-repo.ts index 9a2a8ca33cf..8be69cbc14e 100644 --- a/test/helpers/temp-repo.ts +++ b/test/helpers/temp-repo.ts @@ -15,6 +15,6 @@ export function writeJsonFile(filePath: string, value: unknown): void { export function cleanupTempDirs(tempDirs: string[]): void { for (const dir of tempDirs.splice(0)) { - fs.rmSync(dir, { recursive: true, force: true }); + fs.rmSync(dir, { recursive: true, force: true, maxRetries: 5, retryDelay: 20 }); } }