Skip to content

Commit

Permalink
test: remove test-cluster-* var redeclarations
Browse files Browse the repository at this point in the history
PR-URL: #4980
Reviewed-By: Brian White <mscdex@mscdex.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
Trott authored and rvagg committed Feb 8, 2016
1 parent c3d9329 commit a2881e2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions test/parallel/test-cluster-bind-twice.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ if (!id) {
b.send('START');
});

var ok = false;
let ok = false;

b.on('message', function(m) {
if (typeof m === 'object') return; // ignore system messages
Expand All @@ -68,7 +68,7 @@ if (!id) {
else if (id === 'one') {
if (cluster.isMaster) return startWorker();

var server = http.createServer(common.fail).listen(common.PORT, function() {
http.createServer(common.fail).listen(common.PORT, function() {
process.send('READY');
});

Expand All @@ -79,7 +79,7 @@ else if (id === 'one') {
else if (id === 'two') {
if (cluster.isMaster) return startWorker();

var ok = false;
let ok = false;
process.on('exit', function() {
assert(ok);
});
Expand Down
1 change: 0 additions & 1 deletion test/parallel/test-cluster-dgram-2.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ else


function master() {
var i;
var received = 0;

// Start listening on a socket.
Expand Down
4 changes: 2 additions & 2 deletions test/parallel/test-cluster-eaddrinuse.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var net = require('net');
var id = '' + process.argv[2];

if (id === 'undefined') {
var server = net.createServer(common.fail);
const server = net.createServer(common.fail);
server.listen(common.PORT, function() {
var worker = fork(__filename, ['worker']);
worker.on('message', function(msg) {
Expand All @@ -23,7 +23,7 @@ if (id === 'undefined') {
});
}
else if (id === 'worker') {
var server = net.createServer(common.fail);
let server = net.createServer(common.fail);
server.listen(common.PORT, common.fail);
server.on('error', common.mustCall(function(e) {
assert(e.code, 'EADDRINUSE');
Expand Down

0 comments on commit a2881e2

Please sign in to comment.