0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00

test: wrap callback in common.mustCall

PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
suman-mitra 2017-11-21 12:28:47 +05:30 committed by James M Snell
parent bb31a1689f
commit a95d88c881

View File

@ -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');
@ -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() {