Permalink
Browse files

test: cleanup cluster-disconnect-unshared-tcp test

Replaced var with const

PR-URL: #8598
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ilkka Myller <ilkka.myller@nodefield.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information...
Rachel authored and Fishrock123 committed Sep 17, 2016
1 parent fd7f87e commit 6fb8ebd98c06eba6882180ac390cdfdb67a2d241
Showing with 4 additions and 4 deletions.
  1. +4 −4 test/parallel/test-cluster-disconnect-unshared-tcp.js
@@ -2,11 +2,11 @@
require('../common');
process.env.NODE_CLUSTER_SCHED_POLICY = 'none';
var cluster = require('cluster');
var net = require('net');
const cluster = require('cluster');
const net = require('net');
if (cluster.isMaster) {
var unbound = cluster.fork().on('online', bind);
const unbound = cluster.fork().on('online', bind);
function bind() {
cluster.fork({BOUND: 'y'}).on('listening', disconnect);
@@ -18,7 +18,7 @@ if (cluster.isMaster) {
}
} else {
if (process.env.BOUND === 'y') {
var source = net.createServer();
const source = net.createServer();
source.listen(0);
}

0 comments on commit 6fb8ebd

Please sign in to comment.