Skip to content

Commit

Permalink
test: fix flaky test-watch-mode-files_watcher
Browse files Browse the repository at this point in the history
PR-URL: #46738
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Debadree Chatterjee <[email protected]>
Reviewed-By: Yagiz Nizipli <[email protected]>
  • Loading branch information
MoLow authored and targos committed Mar 13, 2023
1 parent 6f9cb98 commit d5784c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/parallel/test-watch-mode-files_watcher.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ describe('watch mode file watcher', () => {
watcher.watchPath(tmpdir.path);

const changed = once(watcher, 'changed');
await setTimeout(common.platformTimeout(100)); // avoid throttling
writeFileSync(file, 'changed');
await changed;
assert.strictEqual(changesCount, 1);
Expand Down

0 comments on commit d5784c7

Please sign in to comment.