Skip to content
Permalink
Browse files

test: remove timer in fs.watchFile() test

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 committed Jul 13, 2018
1 parent 8c305e1 commit 6d60c930565710d6cbc77521a2cd94d272986646
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/parallel/test-fs-watch-file-enoent-after-deletion.js
@@ -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 6d60c93

Please sign in to comment.
You can’t perform that action at this time.