-
Notifications
You must be signed in to change notification settings - Fork 30k
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: fix params in parallel/test-fs-null-bytes.js #11601
Conversation
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. Can you add a Refs:
line with the related issue URL?
@targos Added. Sorry, maybe I had to post 2 separate issues for these cases. |
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.
- Please add an explanation to the commit message explaining the change.
- Maybe someone has a better idea for the data than
'1'
. If not, feel free to ignore.
@seishun what about |
@targos I think it's better to follow other tests. For example. |
@seishun Done. |
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.
Functions
fs.appendFile()
and fs.writeFile()
were called without mandatorydata
parameter.
How about:
The functions
fs.appendFile()
andfs.writeFile()
were called without the requireddata
parameter.
Also is that how functions are usually referred to in commit messages, with empty brackets?
This PR adds a simple
data
parameter to 6 calls of these functions.
I don't think this line is necessary, but in any case commit messages don't usually refer to themselves as PRs.
@seishun Fixed. As for 'how functions are usually referred to in commit messages' — I don't know. I just followed STYLE_GUIDE here:
Tell me if I should change this here. |
Agreed, let's keep the parentheses as-is. Also, maybe "were being called" instead of "were called". And maybe "argument" instead of "parameter". |
Could this be landed, please? |
@vsemozhetbyt One more thing. The first line is too long. How about replace "params" with "args"? |
The functions `fs.appendFile()` and `fs.writeFile()` were being called without the required `data` argument. Refs: #11595
@seishun Done. |
The functions `fs.appendFile()` and `fs.writeFile()` were being called without the required `data` argument. Refs: #11595 PR-URL: #11601 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Nikolai Vavilov <vvnicholas@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
This does not land cleanly in LTS. Please feel free to manually backport. Please also feel free to replace the backport request label with do-not-land if it shouldn't land |
The functions `fs.appendFile()` and `fs.writeFile()` were being called without the required `data` argument. Refs: #11595 Backport-PR-URL: #12477 PR-URL: #11601 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Nikolai Vavilov <vvnicholas@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
The functions `fs.appendFile()` and `fs.writeFile()` were being called without the required `data` argument. Refs: #11595 Backport-PR-URL: #12477 PR-URL: #11601 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Nikolai Vavilov <vvnicholas@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
The functions `fs.appendFile()` and `fs.writeFile()` were being called without the required `data` argument. Refs: nodejs/node#11595 Backport-PR-URL: nodejs/node#12477 PR-URL: nodejs/node#11601 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Nikolai Vavilov <vvnicholas@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
fs, test
parallel/test-fs-null-bytes.js
testsfs.appendFile()
andfs.writeFile()
with wrong parameters scheme, i.e. without mandatorydata
parameter. This may be not very important for the test aim, but it makes it somehow compromised. This PR adds a simpledata
parameter to the 6 calls of these functions.