Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MoLow committed Nov 26, 2022
1 parent 21f27f0 commit 665c6f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-fs-watch-recursive.js
Expand Up @@ -223,7 +223,7 @@ tmpdir.refresh();

let watcherClosed = false;
const watcher = fs.watch(testDirectory, { recursive: true });
watcher.on('change', common.mustCall(async (event, filename) => {
watcher.on('change', common.mustCallAtLeast(async (event, filename) => {
await setTimeout(common.platformTimeout(100));
if (filename === path.basename(filePath)) {
watcher.close();
Expand Down

0 comments on commit 665c6f9

Please sign in to comment.