Skip to content

Commit

Permalink
test: remove timer in fs.watchFile() test
Browse files Browse the repository at this point in the history
The timer was there to address a race condition that has been removed
from the test. Remove it.

PR-URL: #21694
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information
Trott authored and targos committed Jul 14, 2018
1 parent ae5d565 commit 1502651
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-fs-watch-file-enoent-after-deletion.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ fs.watchFile(filename, { interval: 50 }, common.mustCall(function(curr, prev) {
fs.unwatchFile(filename);
}));

setTimeout(fs.unlinkSync, common.platformTimeout(300), filename);
fs.unlinkSync(filename);

0 comments on commit 1502651

Please sign in to comment.