Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
Don't explicitly unlink filepath, rely on tmp-promise to clean itself…
Browse files Browse the repository at this point in the history
… up, add a comment explaining 'unsafeCleanup'
  • Loading branch information
jeffsmale90 committed Jun 19, 2023
1 parent 0d7cb88 commit 4a76b48
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/chains/ethereum/ethereum/tests/provider.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -795,10 +795,12 @@ describe("provider", () => {
() => closeSync(descriptor),
"File descriptor is still valid after disconnect() called"
);

await unlink(filePath);
},
{ unsafeCleanup: true }
{
// `unsafeCleanup` instructs tmp-promise to recursively remove the
// created temporary directory, even when it's not empty.
unsafeCleanup: true
}
);
});

Expand Down

0 comments on commit 4a76b48

Please sign in to comment.