From 35ee64e2dcc9939305a01662828a1a562b0f4f8e Mon Sep 17 00:00:00 2001 From: pulkit-30 Date: Thu, 7 Dec 2023 22:17:44 +0530 Subject: [PATCH] fix test --- test/parallel/test-fs-promises-file-handle-read.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-fs-promises-file-handle-read.js b/test/parallel/test-fs-promises-file-handle-read.js index 6d0bdfded1c651..2e9534c3989906 100644 --- a/test/parallel/test-fs-promises-file-handle-read.js +++ b/test/parallel/test-fs-promises-file-handle-read.js @@ -109,7 +109,7 @@ async function validateReadWithNoOptions(byte) { response = await read(fileHandle, buf, 0, undefined, 0, { useConf: true }); assert.strictEqual(response.bytesRead, byte); response = await read(fileHandle, buf, 0, null, 0, { useConf: true }); - assert.strictEqual(response.bytesRead, 0); + assert.strictEqual(response.bytesRead, byte); } (async function() {