Skip to content

Commit 9356e96

Browse files
TrottMylesBorins
authored andcommitted
test: add mustCall() to child-process test
Add common.mustCall() check to test-child-process-stdio-big-write-end. PR-URL: #13605 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Yuta Hiroto <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 406b3c0 commit 9356e96

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/parallel/test-child-process-stdio-big-write-end.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'use strict';
2-
require('../common');
2+
const common = require('../common');
33
const assert = require('assert');
44
let bufsize = 0;
55

@@ -22,10 +22,10 @@ function parent() {
2222
child.stdout.on('data', function(c) {
2323
n += c;
2424
});
25-
child.stdout.on('end', function() {
25+
child.stdout.on('end', common.mustCall(function() {
2626
assert.strictEqual(+n, sent);
2727
console.log('ok');
28-
});
28+
}));
2929

3030
// Write until the buffer fills up.
3131
let buf;

0 commit comments

Comments
 (0)