Skip to content

Commit eafdeab

Browse files
Ayase-252nodejs-github-bot
authored andcommitted
test: add test for readStream.path when fd is specified
Refs: #40252 (review) PR-URL: #40359 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Evan Lucas <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 24f045d commit eafdeab

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)