From e48c298d3dbed298159dd789135cdbc9eea5ec55 Mon Sep 17 00:00:00 2001 From: Pedro Ferreira <10789765+apedroferreira@users.noreply.github.com> Date: Tue, 1 Aug 2023 20:28:13 +0100 Subject: [PATCH] Fix Windows EBUSY error when removing files during tests (#2401) --- test/playwright/localTest.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/playwright/localTest.ts b/test/playwright/localTest.ts index 205fa59c381..9431b5d53d1 100644 --- a/test/playwright/localTest.ts +++ b/test/playwright/localTest.ts @@ -137,7 +137,7 @@ export async function withApp( child.kill(); } } finally { - await fs.rm(tmpTestDir, { recursive: true }); + await fs.rm(tmpTestDir, { recursive: true, maxRetries: 3, retryDelay: 1000 }); } }