Skip to content

Commit

Permalink
fs: add test for zero-length read
Browse files Browse the repository at this point in the history
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
  • Loading branch information
fracsinus and aduh95 committed Nov 23, 2021
1 parent 8fdb45b commit 507b683
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/parallel/test-fs-promises-file-handle-read.js
Expand Up @@ -87,8 +87,7 @@ async function validateReadWithPositionZero() {
}
}

async function validateReadLength() {
const len = 1;
async function validateReadLength(len) {
const buf = Buffer.alloc(4);
const opts = { useConf: true };
const filePath = fixtures.path('x.txt');
Expand Down

0 comments on commit 507b683

Please sign in to comment.