| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| })); | ||
| }); | ||
|
|
||
| fs.write(fd, '', 0, 'utf8', function(err, written) { |
There was a problem hiding this comment.
There probably needs to be a common.mustCall() for this callback as well.
Sorry, something went wrong.
There was a problem hiding this comment.
Like this:
const written = common.mustCall(function(err, written) {
assert.strictEqual(0, written);
});
fs.write(fd, '', 0, 'utf8', written);
?
Sorry, something went wrong.
There was a problem hiding this comment.
Either inline or not, doesn't really matter.
Sorry, something went wrong.
| assert.strictEqual(expected, found); | ||
| }); | ||
|
|
||
| fs.write(fd, '', 0, 'utf8', (err, written) => { |
There was a problem hiding this comment.
Ditto.
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
Sorry, something went wrong.
|
AIX failure is unrelated (and now fixed if you want to do a re-run but I don't think that's necessary). |
Sorry, something went wrong.
Sorry, something went wrong.
PR-URL: #16827 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
PR-URL: #16827 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
PR-URL: #16827 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
| Back | FazBrowse Home | New Git URL |
Refactored fs.write() tests to use done, thanks for your help @mcollina.
Checklist