Please sign in to comment.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: fix flaky test-fs-watchfile on macOS
On macOS, a watcher created with fs.watch() does not necessarily start receiving events immediately. So it can miss a change by fs.writefile() if it comes very soon after the watcher is created. Fix test flakiness caused by this by using `setInterval()` to repeat the write action. PR-URL: #13252 Fixes: #13248 Reviewed-By: Refael Ackermann <email@example.com> Reviewed-By: Luigi Pinca <firstname.lastname@example.org> Reviewed-By: Benjamin Gruenbaum <email@example.com> Reviewed-By: Colin Ihrig <firstname.lastname@example.org> Reviewed-By: Michael Dawson <email@example.com> Reviewed-By: James M Snell <firstname.lastname@example.org>
- Loading branch information