Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Commit

Permalink
Fix timing issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
occar421 committed Mar 30, 2018
1 parent 9559194 commit ab3736b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ export const existsAsync = fileName =>
export const removeGeneratedFiles = async () => {
const files = await enumerateFilesAsync(path.join(__dirname, "fixtures"));
files.filter(f => f.endsWith(".null")).forEach(f => {
fs.unlinkSync(f);
fs.unlink(f, err => {
if (err && err.code !== "ENOENT") throw err;
});
});
};

0 comments on commit ab3736b

Please sign in to comment.