Skip to content

Commit 9fa5ba8

Browse files
luoyutargos
luoyu
authored andcommitted
test: add mustCall to test-fs-readfile-pipe-large
PR-URL: #27460 Reviewed-By: Weijia Wang <[email protected]> Reviewed-By: Yorkie Liu <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Ouyang Yadong <[email protected]>
1 parent e8d5b62 commit 9fa5ba8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-fs-readfile-pipe-large.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const exec = require('child_process').exec;
2929
const f = JSON.stringify(__filename);
3030
const node = JSON.stringify(process.execPath);
3131
const cmd = `cat ${filename} | ${node} ${f} child`;
32-
exec(cmd, { maxBuffer: 1000000 }, function(err, stdout, stderr) {
32+
exec(cmd, { maxBuffer: 1000000 }, common.mustCall((err, stdout, stderr) => {
3333
assert.ifError(err);
3434
assert.strictEqual(
3535
stdout,
@@ -42,7 +42,7 @@ exec(cmd, { maxBuffer: 1000000 }, function(err, stdout, stderr) {
4242
`expect that it does not write to stderr, but got : ${stderr}`
4343
);
4444
console.log('ok');
45-
});
45+
}));
4646

4747
process.on('exit', function() {
4848
fs.unlinkSync(filename);

0 commit comments

Comments
 (0)