Skip to content

Commit 641b1bb

Browse files
Ayase-252targos
authored andcommittedOct 13, 2021
test: add test for readStream.path when fd is specified
Refs: #40252 (review) PR-URL: #40359 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 07dae7f commit 641b1bb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎test/parallel/test-fs-read-stream-fd.js

+2
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ fs.writeFileSync(file, input);
3535
const fd = fs.openSync(file, 'r');
3636
const stream = fs.createReadStream(null, { fd: fd, encoding: 'utf8' });
3737

38+
assert.strictEqual(stream.path, undefined);
39+
3840
stream.on('data', common.mustCallAtLeast((data) => {
3941
output += data;
4042
}));

0 commit comments

Comments
 (0)
Please sign in to comment.