Skip to content

Commit a941dd3

Browse files
chore: ignore test tmp delete failures on windows (#3088)
1 parent cfc9a9a commit a941dd3

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/test_utils.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,8 @@ export async function withTmpDir(
127127
async [Symbol.asyncDispose]() {
128128
try {
129129
await Deno.remove(dir, { recursive: true });
130-
} catch (error) {
131-
if (!(error instanceof Deno.errors.PermissionDenied)) {
132-
throw error;
133-
}
130+
} catch {
131+
// Ignore errors Files in tmp will be cleaned up by the OS
134132
}
135133
},
136134
};

0 commit comments

Comments
 (0)