Skip to content

Commit

Permalink
test: cleanup cluster-disconnect-unshared-tcp test
Browse files Browse the repository at this point in the history
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 Oct 11, 2016
1 parent fd7f87e commit 6fb8ebd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/parallel/test-cluster-disconnect-unshared-tcp.js
Expand Up @@ -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);
Expand All @@ -18,7 +18,7 @@ if (cluster.isMaster) {
}
} else {
if (process.env.BOUND === 'y') {
var source = net.createServer();
const source = net.createServer();

source.listen(0);
}
Expand Down

0 comments on commit 6fb8ebd

Please sign in to comment.