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 <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Anatoli Papirovski <[email protected]>
Reviewed-By: Franziska Hinkelmann <[email protected]>
  • Loading branch information
vipinmenon authored and MylesBorins committed Nov 28, 2017
1 parent 9d4abaa commit 969defa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/parallel/test-process-raw-debug.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
'use strict';
require('../common');
const common = require('../common');
const assert = require('assert');
const os = require('os');

Expand Down Expand Up @@ -29,10 +29,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 969defa

Please sign in to comment.