chore: ignore test tmp delete failures on windows (#3088)
This commit is contained in:
+2
-4
@@ -127,10 +127,8 @@ export async function withTmpDir(
|
|||||||
async [Symbol.asyncDispose]() {
|
async [Symbol.asyncDispose]() {
|
||||||
try {
|
try {
|
||||||
await Deno.remove(dir, { recursive: true });
|
await Deno.remove(dir, { recursive: true });
|
||||||
} catch (error) {
|
} catch {
|
||||||
if (!(error instanceof Deno.errors.PermissionDenied)) {
|
// Ignore errors Files in tmp will be cleaned up by the OS
|
||||||
throw error;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user