Skip to content

Commit ec28fe6

Browse files
sreepurnajastigibfahn
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 7ee9d69 commit ec28fe6

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
@@ -20,7 +20,7 @@
2020
// USE OR OTHER DEALINGS IN THE SOFTWARE.
2121

2222
'use strict';
23-
require('../common');
23+
constcommon=require('../common');
2424
constassert=require('assert');
2525
constchild_process=require('child_process');
2626
constspawn=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)