diff --git a/test/parallel/test-fs-read-stream-inherit.js b/test/parallel/test-fs-read-stream-inherit.js index 69f3b9c3f724bd..ef965971dc9704 100644 --- a/test/parallel/test-fs-read-stream-inherit.js +++ b/test/parallel/test-fs-read-stream-inherit.js @@ -26,7 +26,7 @@ const rangeFile = fixtures.path('x.txt'); file.resume(); })); - file.on('data', function(data) { + file.on('data', common.mustCallAtLeast(function(data) { assert.ok(data instanceof Buffer); assert.ok(!paused); file.length += data.length; @@ -38,7 +38,7 @@ const rangeFile = fixtures.path('x.txt'); paused = false; file.resume(); }, 10); - }); + })); file.on('end', common.mustCall());