Skip to content

Commit

Permalink
test: enable mustCall() during child exit
Browse files Browse the repository at this point in the history
PR-URL: #16915
Reviewed-By: Khaidi Chu <i@2333.moe>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
  • Loading branch information
vipinmenon authored and evanlucas committed Nov 13, 2017
1 parent 31dadd2 commit 407eb6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-process-raw-debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ function parent() {
console.log('ok - got expected message');
});

child.on('exit', function(c) {
child.on('exit', common.mustCall(function(c) {
assert(!c);
console.log('ok - child exited nicely');
});
}));
}

function child() {
Expand Down

0 comments on commit 407eb6f

Please sign in to comment.