Skip to content

Commit

Permalink
test: update test-cluster-disconnect-unshared-udp
Browse files Browse the repository at this point in the history
Changed var to const

PR-URL: #8599
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ilkka Myller <ilkka.myller@nodefield.com>
  • Loading branch information
matt-in-a-hat authored and Fishrock123 committed Oct 11, 2016
1 parent 5a59ca6 commit bcba27e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/parallel/test-cluster-disconnect-unshared-udp.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ if (common.isWindows) {
return;
}

var cluster = require('cluster');
var dgram = require('dgram');
const cluster = require('cluster');
const dgram = require('dgram');

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 @@ -23,7 +23,7 @@ if (cluster.isMaster) {
}
} else {
if (process.env.BOUND === 'y') {
var source = dgram.createSocket('udp4');
const source = dgram.createSocket('udp4');

source.bind(0);
}
Expand Down

0 comments on commit bcba27e

Please sign in to comment.