Skip to content

Commit

Permalink
test: add mustCallAtLeast to test-fs-read-stream-inherit
Browse files Browse the repository at this point in the history
PR-URL: #27457
Reviewed-By: Weijia Wang <starkwang@126.com>
Reviewed-By: Yorkie Liu <yorkiefixer@gmail.com>
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
  • Loading branch information
nilianzhu authored and targos committed Apr 29, 2019
1 parent 4b9d109 commit 51fc672
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-fs-read-stream-inherit.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -38,7 +38,7 @@ const rangeFile = fixtures.path('x.txt');
paused = false;
file.resume();
}, 10);
});
}));


file.on('end', common.mustCall());
Expand Down

0 comments on commit 51fc672

Please sign in to comment.