Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQingyu Deng <i@ayase-lab.com>2021-10-07 10:02:48 +0300
committerNode.js GitHub Bot <github-bot@iojs.org>2021-10-09 20:22:47 +0300
commiteafdeab97b6757485781f19b90786a87b2b36369 (patch)
tree6c158b8787e59e4a334a72b47520074fab7e6c34
parent24f045dae2401033f16ff882a103123c63ab575b (diff)
test: add test for readStream.path when fd is specified
Refs: https://github.com/nodejs/node/pull/40252#pullrequestreview-766378863 PR-URL: https://github.com/nodejs/node/pull/40359 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
-rw-r--r--test/parallel/test-fs-read-stream-fd.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/parallel/test-fs-read-stream-fd.js b/test/parallel/test-fs-read-stream-fd.js
index ddb62799ace..c28ab65140a 100644
--- a/test/parallel/test-fs-read-stream-fd.js
+++ b/test/parallel/test-fs-read-stream-fd.js
@@ -35,6 +35,8 @@ fs.writeFileSync(file, input);
const fd = fs.openSync(file, 'r');
const stream = fs.createReadStream(null, { fd: fd, encoding: 'utf8' });
+assert.strictEqual(stream.path, undefined);
+
stream.on('data', common.mustCallAtLeast((data) => {
output += data;
}));