Skip to content
This repository was archived by the owner on Oct 15, 2020. It is now read-only.

Commit aec0190

Browse files
committed
test: use createReadStream instead of ReadStream
This commit updates test-fs-read-stream to use fs.createReadStream instead of using fs.ReadStream. All other places in this test use the former. PR-URL: nodejs/node#19636 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Weijia Wang <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 0434bd4 commit aec0190

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const rangeFile = fixtures.path('x.txt');
3535
let paused = false;
3636
let bytesRead = 0;
3737

38-
const file = fs.ReadStream(fn);
38+
const file = fs.createReadStream(fn);
3939
const fileSize = fs.statSync(fn).size;
4040

4141
assert.strictEqual(file.bytesRead, 0);

0 commit comments

Comments
 (0)