Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit eafdeab

Browse filesBrowse 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 <jasnell@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 24f045d commit eafdeab
Copy full SHA for eafdeab

File tree

Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: test/parallel/test-fs-read-stream-fd.js
+2Lines changed: 2 additions & 0 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.