Skip to content

Commit 1502651

Browse files
Trotttargos
authored andcommitted
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 <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent ae5d565 commit 1502651

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-fs-watch-file-enoent-after-deletion.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ fs.watchFile(filename, { interval: 50 }, common.mustCall(function(curr, prev) {
4545
fs.unwatchFile(filename);
4646
}));
4747

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

0 commit comments

Comments
 (0)