| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| for (const fileName of [...this.files]) { | ||
| await writeFile(this.filePath(fileName), Date.now() + fileName.repeat(1e4)); | ||
| } | ||
| await setTimeout(common.platformTimeout(100)); |
There was a problem hiding this comment.
If there was a reason for this I will add it back, but I don't see it.
Sorry, something went wrong.
| // Do the write with a delay to ensure that the OS is ready to notify us. | ||
| await setTimeout(common.platformTimeout(100)); |
There was a problem hiding this comment.
The same is done in other fs.watch() tests, for example:
node/test/parallel/test-fs-watch-recursive-add-file.js
Lines 41 to 44 in c6316f9
Sorry, something went wrong.
There was a problem hiding this comment.
I think this deserves a TODO to investigate why this is occuring and whether or not this is a bug.
Sorry, something went wrong.
There was a problem hiding this comment.
There already an open issue (#52601) linked in the commit message.
Sorry, something went wrong.
There was a problem hiding this comment.
Thank you!
lgtm
Sorry, something went wrong.
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## main #60060 +/- ##
==========================================
- Coverage 88.45% 88.45% -0.01%
==========================================
Files 703 703
Lines 207826 207826
Branches 40030 40038 +8
==========================================
- Hits 183842 183826 -16
+ Misses 15973 15972 -1
- Partials 8011 8028 +17 see 27 files with indirect coverage changes 🚀 New features to boost your workflow:
|
Sorry, something went wrong.
Add a delay before writing the files to ensure that the watcher receives the notifications. Fixes: nodejs#60051 Refs: nodejs#52601
|
Rebased, this needs new approvals. |
Sorry, something went wrong.
Sorry, something went wrong.
Refs: nodejs#60060 PR-URL: nodejs#61532 Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: Jake Yuesong Li <jake.yuesong@gmail.com>
| Back | FazBrowse Home | New Git URL |
Add a delay before writing the files to ensure that the watcher receives the notifications.
Fixes: #60051
Refs: #52601