diff --git a/test/parallel/test-cluster-disconnect-unshared-tcp.js b/test/parallel/test-cluster-disconnect-unshared-tcp.js index e05cbf42cf1..dc05d70c81f 100644 --- a/test/parallel/test-cluster-disconnect-unshared-tcp.js +++ b/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); }