Permalink
Browse files

test: wrap callback in common.mustCall

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 Nov 21, 2017
1 parent fd36b27 commit 5d488ee13f3d51d49259adc06161705a4ed37dd0
Showing with 3 additions and 3 deletions.
  1. +3 −3 test/parallel/test-cluster-message.js
@@ -1,5 +1,5 @@
'use strict';
require('../common');
const common = require('../common');
const assert = require('assert');
const cluster = require('cluster');
const net = require('net');
@@ -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() {

0 comments on commit 5d488ee

Please sign in to comment.