From 51fc672da95aab0fe85eb80c67a51212a8814394 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 PR-URL: https://github.com/nodejs/node/pull/27457 Reviewed-By: Weijia Wang Reviewed-By: Yorkie Liu Reviewed-By: Yongsheng Zhang Reviewed-By: Colin Ihrig Reviewed-By: Rich Trott --- 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());