-
-
Notifications
You must be signed in to change notification settings - Fork 34.5k
test: split test-fs-watch-ignore-* #61494
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Split and simplify the tests into individual files. Refs: nodejs#61433
| skipIfNoWatch(); | ||
|
|
||
| // if (common.isSunOS) | ||
| // common.skip('`fs.watch()` is not reliable on SunOS.'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These should be replaced with entries in test/parallel/parallel.status but I can't find a tracking issue.
| // Do the write with a delay to ensure that the OS is ready to notify us. See | ||
| // https://github.com/nodejs/node/issues/52601. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know if the delay is needed only on macOS. If so, it would be better to conditionally delay writing using common.isMacOS to avoid wasting time on other platforms.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think on macOS at least, this is needed, otherwise it's known to cause flakes due to FSEvents coalescing. Not sure about other platforms.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #61494 +/- ##
==========================================
- Coverage 89.82% 89.80% -0.02%
==========================================
Files 667 672 +5
Lines 203693 203907 +214
Branches 39163 39197 +34
==========================================
+ Hits 182963 183124 +161
- Misses 13061 13119 +58
+ Partials 7669 7664 -5 🚀 New features to boost your workflow:
|
joyeecheung
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RSLGTM
Split and simplify the tests into individual files.
Refs: #61433