Skip to content

Commit

Permalink
test: wrap callback in common.mustCall
Browse files Browse the repository at this point in the history
PR-URL: #17173
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
  • Loading branch information
suman-mitra authored and MylesBorins committed Dec 11, 2017
1 parent 0b12884 commit 417e7d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/parallel/test-cluster-message.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
// USE OR OTHER DEALINGS IN THE SOFTWARE.

'use strict';
require('../common');
const common = require('../common');
const assert = require('assert');
const cluster = require('cluster');
const net = require('net');
Expand Down Expand Up @@ -132,9 +132,9 @@ if (cluster.isWorker) {
worker.kill();
});

worker.on('exit', function() {
worker.on('exit', common.mustCall(function() {
process.exit(0);
});
}));
});

process.once('exit', function() {
Expand Down

0 comments on commit 417e7d1

Please sign in to comment.