Skip to content

Commit 507b683

Browse files
fracsinusaduh95
andauthored
fs: add test for zero-length read
Co-authored-by: Antoine du Hamel <[email protected]>
1 parent 8fdb45b commit 507b683

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/parallel/test-fs-promises-file-handle-read.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@ async function validateReadWithPositionZero() {
8787
}
8888
}
8989

90-
async function validateReadLength() {
91-
const len = 1;
90+
async function validateReadLength(len) {
9291
const buf = Buffer.alloc(4);
9392
const opts = { useConf: true };
9493
const filePath = fixtures.path('x.txt');

0 commit comments

Comments
 (0)