From 5d488ee13f3d51d49259adc06161705a4ed37dd0 Mon Sep 17 00:00:00 2001 From: suman-mitra Date: Tue, 21 Nov 2017 12:28:47 +0530 Subject: [PATCH] test: wrap callback in common.mustCall PR-URL: https://github.com/nodejs/node/pull/17173 Reviewed-By: Gireesh Punathil Reviewed-By: Colin Ihrig Reviewed-By: James M Snell Reviewed-By: Rich Trott --- test/parallel/test-cluster-message.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/parallel/test-cluster-message.js b/test/parallel/test-cluster-message.js index 57fb8eb59c7f7c..17466841c1b331 100644 --- a/test/parallel/test-cluster-message.js +++ b/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() {