Skip to content

Commit 077eca3

Browse files
committed
fix: retry cache dir cleanup on error
1 parent b02caf9 commit 077eca3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

v-next/hardhat/test/internal/builtin-plugins/console/task-action.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ describe("console/task-action", function () {
145145
});
146146

147147
afterEach(function () {
148-
fs.rmSync(cacheDir, { recursive: true, force: true });
148+
fs.rmSync(cacheDir, { recursive: true, force: true, maxRetries: 3 });
149149
});
150150

151151
it("should create a history file", async function () {

0 commit comments

Comments
 (0)