From 51457472c4e841b3cee44189cc1cfca8b6a1cb62 Mon Sep 17 00:00:00 2001 From: Darshan Sen Date: Wed, 27 Jan 2021 20:41:12 +0530 Subject: [PATCH] fixup! fs: change default value of position in read and readSync --- test/parallel/test-fs-promisified.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-fs-promisified.js b/test/parallel/test-fs-promisified.js index 0744f62fd17fa5..f24123694fc12f 100644 --- a/test/parallel/test-fs-promisified.js +++ b/test/parallel/test-fs-promisified.js @@ -11,7 +11,7 @@ const exists = promisify(fs.exists); { const fd = fs.openSync(__filename, 'r'); - read(fd, Buffer.alloc(1024), 0, 1024, null).then(common.mustCall((obj) => { + read(fd, Buffer.alloc(1024), 0, 1024, -1).then(common.mustCall((obj) => { assert.strictEqual(typeof obj.bytesRead, 'number'); assert(obj.buffer instanceof Buffer); fs.closeSync(fd);