Uh oh!
There was an error while loading. Please reload this page.
test: add fs/promises filehandle sync() and datasync() tests. - #20530
test: add fs/promises filehandle sync() and datasync() tests.#20530shisama wants to merge 4 commits into
Conversation
There was a problem hiding this comment.
handle.write(buf)?
Same results and coverage, also see #20559.
There was a problem hiding this comment.
read(handle → handle.read(? See the comment above.
1ff5b56 to
e8f8408CompareChALkeR
commented
May 20, 2018
/cc @Trott |
BridgeAR
commented
May 29, 2018
5784c2d to
2b54d4aCompareshisama
commented
Jun 5, 2018
This is rebased on 0300f7c. |
apapirovski
commented
Jun 10, 2018
@nodejs/fs please give this a look and a review, if possible. It's been over a month. |
joyeecheung
left a comment
There was a problem hiding this comment.
This does not seem to actually test that fsync and fdatasync calls are effective, but I am not quite sure how to write tests for them with our APIs either, so LGTM as long as the code paths are covered.
There was a problem hiding this comment.
common.mustCall() here seems unnecessary. If anything, common.crashOnUnhandledRejection() above gives a better hint about why it fails.
There was a problem hiding this comment.
@joyeecheung Thanks. Removed common.mustCall().
To increase test coverage for fs/promises, added tests for filehandle.sync and filehandle.datasync.
Replacing fs/promises methods read and write with fs/promises filehandle methods.
Fix module loading because fs/promises was moved to fs.promises
2b54d4a to
d462d2cCompareapapirovski
commented
Jun 25, 2018
shisama
commented
Jun 30, 2018
CI failure is not related to this. It happens in |
hiroppy
commented
Jun 30, 2018
shisama
commented
Jul 7, 2018
I think CI failure |
targos
commented
Jul 15, 2018
To increase test coverage for fs.promises, added tests for filehandle.sync and filehandle.datasync. PR-URL: nodejs#20530 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
targos
commented
Jul 15, 2018
To increase test coverage for fs.promises, added tests for filehandle.sync and filehandle.datasync. PR-URL: #20530 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
To increase test coverage for fs/promises,
added tests for filehandle.sync and filehandle.datasync.
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes