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 <gpunathi@in.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
  • Loading branch information
suman-mitra authored and MylesBorins committed Dec 19, 2017
1 parent fd36b27 commit 5d488ee
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
@@ -1,5 +1,5 @@
'use strict';
require('../common');
const common = require('../common');
const assert = require('assert');
const cluster = require('cluster');
const net = require('net');
Expand Down Expand Up @@ -111,9 +111,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 5d488ee

Please sign in to comment.