Skip to content

Commit 51fc672

Browse files
nilianzhutargos
nilianzhu
authored andcommitted
test: add mustCallAtLeast to test-fs-read-stream-inherit
PR-URL: #27457 Reviewed-By: Weijia Wang <[email protected]> Reviewed-By: Yorkie Liu <[email protected]> Reviewed-By: Yongsheng Zhang <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Rich Trott <[email protected]>
1 parent 4b9d109 commit 51fc672

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const rangeFile = fixtures.path('x.txt');
2626
file.resume();
2727
}));
2828

29-
file.on('data', function(data) {
29+
file.on('data', common.mustCallAtLeast(function(data) {
3030
assert.ok(data instanceof Buffer);
3131
assert.ok(!paused);
3232
file.length += data.length;
@@ -38,7 +38,7 @@ const rangeFile = fixtures.path('x.txt');
3838
paused = false;
3939
file.resume();
4040
}, 10);
41-
});
41+
}));
4242

4343

4444
file.on('end', common.mustCall());

0 commit comments

Comments
 (0)