Permalink
Browse files

test: utilize common.mustCall() on child exit

PR-URL: #16996
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
  • Loading branch information...
sreepurnajasti authored and MylesBorins committed Nov 13, 2017
1 parent 8cae573 commit 39cd0a8abc06d72428f3908c3bba73b0fe768794
Showing with 3 additions and 3 deletions.
  1. +3 −3 test/parallel/test-child-process-fork-exec-argv.js
@@ -1,5 +1,5 @@
'use strict';
require('../common');
const common = require('../common');
const assert = require('assert');
const child_process = require('child_process');
const spawn = child_process.spawn;
@@ -22,7 +22,7 @@ if (process.argv[2] === 'fork') {
out += chunk;
});
child.on('exit', function() {
child.on('exit', common.mustCall(function() {
assert.deepStrictEqual(JSON.parse(out), execArgv);
});
}));
}

0 comments on commit 39cd0a8

Please sign in to comment.