We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b9d109 commit 51fc672Copy full SHA for 51fc672
test/parallel/test-fs-read-stream-inherit.js
@@ -26,7 +26,7 @@ const rangeFile = fixtures.path('x.txt');
26
file.resume();
27
}));
28
29
- file.on('data', function(data) {
+ file.on('data', common.mustCallAtLeast(function(data) {
30
assert.ok(data instanceof Buffer);
31
assert.ok(!paused);
32
file.length += data.length;
@@ -38,7 +38,7 @@ const rangeFile = fixtures.path('x.txt');
38
paused = false;
39
40
}, 10);
41
- });
+ }));
42
43
44
file.on('end', common.mustCall());
0 commit comments