Skip to content

Commit bcba27e

Browse files
matt-in-a-hatFishrock123
authored andcommitted
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>
1 parent 5a59ca6 commit bcba27e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/parallel/test-cluster-disconnect-unshared-udp.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ if (common.isWindows) {
77
return;
88
}
99

10-
var cluster = require('cluster');
11-
var dgram = require('dgram');
10+
const cluster = require('cluster');
11+
const dgram = require('dgram');
1212

1313
if (cluster.isMaster) {
14-
var unbound = cluster.fork().on('online', bind);
14+
const unbound = cluster.fork().on('online', bind);
1515

1616
function bind() {
1717
cluster.fork({BOUND: 'y'}).on('listening', disconnect);
@@ -23,7 +23,7 @@ if (cluster.isMaster) {
2323
}
2424
} else {
2525
if (process.env.BOUND === 'y') {
26-
var source = dgram.createSocket('udp4');
26+
const source = dgram.createSocket('udp4');
2727

2828
source.bind(0);
2929
}

0 commit comments

Comments
 (0)