Skip to content

Commit 3ca10fa

Browse files
danbevBethGriggs
authored andcommitted
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: #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 8a546e8 commit 3ca10fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

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

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

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

0 commit comments

Comments
 (0)