Skip to content

Commit 39cd0a8

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 8cae573 commit 39cd0a8

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

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
const child_process = require('child_process');
55
const spawn = child_process.spawn;
@@ -22,7 +22,7 @@ if (process.argv[2] === 'fork') {
2222
out += chunk;
2323
});
2424

25-
child.on('exit', function() {
25+
child.on('exit', common.mustCall(function() {
2626
assert.deepStrictEqual(JSON.parse(out), execArgv);
27-
});
27+
}));
2828
}

0 commit comments

Comments
 (0)