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 <luigipinca@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: James M Snell <jasnell@gmail.com>
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

Lines changed: 3 additions & 3 deletions
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)