-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
test: fs.write() if 3rd argument is a callback, not offset #17045
Conversation
…y to resolve conflicts from nodejs#16822 and nodejs#16827
test/parallel/test-fs-write.js
Outdated
@@ -73,3 +73,13 @@ fs.open(fn2, args, 0o644, common.mustCall((err, fd) => { | |||
fs.write(fd, '', 0, 'utf8', written); | |||
fs.write(fd, expected, 0, 'utf8', done); | |||
})); | |||
|
|||
fs.open(fn, 'w', 0o644, common.mustCall(function(err, fd) { |
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'd use something other than fn
to prevent any issues with the tests interacting with one another.
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.
Done, thanks.
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.
LGTM with @cjihrig's comment addressed
CI: https://ci.nodejs.org/job/node-test-commit/14132/ This should be ready. |
Landed in 8f8999c, thanks for the PR! ✨ |
#16827 and #16822 resulted in some serious merge conflicts, so I decided to open a fresh PR for this with everything resolved.
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes