Skip to content

Commit 417e7d1

Browse files
suman-mitraMylesBorins
authored andcommitted
test: wrap callback in common.mustCall
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]>
1 parent 0b12884 commit 417e7d1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/parallel/test-cluster-message.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
// USE OR OTHER DEALINGS IN THE SOFTWARE.
2121

2222
'use strict';
23-
require('../common');
23+
const common = require('../common');
2424
const assert = require('assert');
2525
const cluster = require('cluster');
2626
const net = require('net');
@@ -132,9 +132,9 @@ if (cluster.isWorker) {
132132
worker.kill();
133133
});
134134

135-
worker.on('exit', function() {
135+
worker.on('exit', common.mustCall(function() {
136136
process.exit(0);
137-
});
137+
}));
138138
});
139139

140140
process.once('exit', function() {

0 commit comments

Comments
 (0)