Skip to content

Commit 57b7e85

Browse files
matt-in-a-hatimyller
authored andcommitted
test: update test-cluster-disconnect-unshared-udp
Changed var to const PR-URL: #8599 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Ilkka Myller <[email protected]>
1 parent daa0f90 commit 57b7e85

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)