Skip to content

Commit 7874360

Browse files
Trottaddaleax
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 cbe7c5c commit 7874360

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
@@ -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 assert = require('assert');
2525
let bufsize = 0;
2626

@@ -43,10 +43,10 @@ function parent() {
4343
child.stdout.on('data', function(c) {
4444
n += c;
4545
});
46-
child.stdout.on('end', function() {
46+
child.stdout.on('end', common.mustCall(function() {
4747
assert.strictEqual(+n, sent);
4848
console.log('ok');
49-
});
49+
}));
5050

5151
// Write until the buffer fills up.
5252
let buf;

0 commit comments

Comments
 (0)