From a941dd33c542bb739cd5fcb65aadad1e9f96a859 Mon Sep 17 00:00:00 2001 From: Marvin Hagemeister Date: Thu, 10 Jul 2025 10:21:22 +0200 Subject: [PATCH] chore: ignore test tmp delete failures on windows (#3088) --- src/test_utils.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/test_utils.ts b/src/test_utils.ts index 9de45842..c633c61e 100644 --- a/src/test_utils.ts +++ b/src/test_utils.ts @@ -127,10 +127,8 @@ export async function withTmpDir( async [Symbol.asyncDispose]() { try { await Deno.remove(dir, { recursive: true }); - } catch (error) { - if (!(error instanceof Deno.errors.PermissionDenied)) { - throw error; - } + } catch { + // Ignore errors Files in tmp will be cleaned up by the OS } }, };