Skip to content

Commit 23c98fa

Browse files
sreepurnajastiMylesBorins
authored andcommitted
test: utilize common.mustCall() on child exit
PR-URL: #16996 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
1 parent 883281b commit 23c98fa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/parallel/test-child-process-fork-exec-argv.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
const child_process = require('child_process');
2626
const spawn = child_process.spawn;
@@ -43,7 +43,7 @@ if (process.argv[2] === 'fork') {
4343
out += chunk;
4444
});
4545

46-
child.on('exit', function() {
46+
child.on('exit', common.mustCall(function() {
4747
assert.deepStrictEqual(JSON.parse(out), execArgv);
48-
});
48+
}));
4949
}

0 commit comments

Comments
 (0)