fix(test): retry flaky file remove on Windows (#1010)
This commit is contained in:
+3
-2
@@ -5,6 +5,7 @@ import {
|
||||
assertStringIncludes,
|
||||
delay,
|
||||
puppeteer,
|
||||
retry,
|
||||
TextLineStream,
|
||||
} from "./deps.ts";
|
||||
|
||||
@@ -169,7 +170,7 @@ Deno.test({
|
||||
serverProcess.close();
|
||||
});
|
||||
|
||||
await Deno.remove(tmpDirName, { recursive: true });
|
||||
await retry(() => Deno.remove(tmpDirName, { recursive: true }));
|
||||
},
|
||||
sanitizeOps: false,
|
||||
sanitizeResources: false,
|
||||
@@ -325,7 +326,7 @@ Deno.test({
|
||||
serverProcess.close();
|
||||
});
|
||||
|
||||
await Deno.remove(tmpDirName, { recursive: true });
|
||||
await retry(() => Deno.remove(tmpDirName, { recursive: true }));
|
||||
},
|
||||
sanitizeOps: false,
|
||||
sanitizeResources: false,
|
||||
|
||||
@@ -13,4 +13,5 @@ export {
|
||||
TextLineStream,
|
||||
} from "https://deno.land/std@0.150.0/streams/delimiter.ts";
|
||||
export { delay } from "https://deno.land/std@0.150.0/async/delay.ts";
|
||||
export { retry } from "https://deno.land/std@0.170.0/async/retry.ts";
|
||||
export { default as puppeteer } from "https://deno.land/x/puppeteer@16.2.0/mod.ts";
|
||||
|
||||
Reference in New Issue
Block a user