Skip to content
Permalink
Browse files

test: update test-cluster-disconnect-unshared-udp

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 Sep 17, 2016
1 parent 5a59ca6 commit bcba27e8c60e71d48f12fc3c8e646947c35408bf
Showing with 4 additions and 4 deletions.
  1. +4 −4 test/parallel/test-cluster-disconnect-unshared-udp.js
@@ -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);
@@ -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);
}

0 comments on commit bcba27e

Please sign in to comment.
You can’t perform that action at this time.