8000 test: add mustCallAtLeast to test-fs-read-stream-resume.js · nodejs/node@0e4f878 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit 0e4f878

Browse files
hebentargos
heben
authored andcommitted
test: add mustCallAtLeast to test-fs-read-stream-resume.js
add mustCallAtLeast to test-fs-read-stream-resume.js PR-URL: #27456 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Ouyang Yadong <oyydoibh@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent e89b6fe commit 0e4f878

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/parallel/test-fs-read-stream-resume.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
// USE OR OTHER DEALINGS IN THE SOFTWARE.
2121

2222
'use strict';
23-
require('../common');
23+
const common = require('../common');
2424
const fixtures = require('../common/fixtures');
2525
const assert = require('assert');
2626

@@ -32,13 +32,13 @@ let first = true;
3232

3333
const stream = fs.createReadStream(file);
3434
stream.setEncoding('utf8');
35-
stream.on('data', function(chunk) {
35+
stream.on('data', common.mustCallAtLeast(function(chunk) {
3636
data += chunk;
3737
if (first) {
3838
first = false;
3939
stream.resume();
4040
}
41-
});
41+
}));
4242

4343
process.nextTick(function() {
4444
stream.pause();

0 commit comments

Comments
 (0)
0