mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
a030c5cf49
Many test modules load assert but do not use it. This change removes those instances. It also removes a handful of other unused variables when they were nearby. PR-URL: https://github.com/nodejs/node/pull/4438 Reviewed-By: Michaël Zasso <mic.besace@gmail.com> Reviewed-By: Brian White <mscdex@mscdex.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
21 lines
442 B
JavaScript
21 lines
442 B
JavaScript
'use strict';
|
|
|
|
const common = require('../common');
|
|
const cluster = require('cluster');
|
|
const net = require('net');
|
|
|
|
if (cluster.isMaster) {
|
|
cluster.fork().on('message', function(msg) {
|
|
if (msg === 'done') this.kill();
|
|
});
|
|
} else {
|
|
const server = net.createServer(common.fail);
|
|
server.listen(common.PORT, function() {
|
|
server.unref();
|
|
server.ref();
|
|
server.close(function() {
|
|
process.send('done');
|
|
});
|
|
});
|
|
}
|