From ea83c90d4e8447c112d438f85f9210da0ce89012 Mon Sep 17 00:00:00 2001 From: nilianzhu Date: Sun, 28 Apr 2019 16:53:17 +0800 Subject: [PATCH] test: add mustCallAtLeast to test-fs-read-stream-inherit --- test/parallel/test-fs-read-stream-inherit.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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());