From 57b7e85a59dbb18dadc894fed9892b215b2f2014 Mon Sep 17 00:00:00 2001 From: matt-in-a-hat Date: Sat, 17 Sep 2016 11:38:07 +0200 Subject: [PATCH] test: update test-cluster-disconnect-unshared-udp Changed var to const PR-URL: https://github.com/nodejs/node/pull/8599 Reviewed-By: Colin Ihrig Reviewed-By: Luigi Pinca Reviewed-By: Ilkka Myller --- test/parallel/test-cluster-disconnect-unshared-udp.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/parallel/test-cluster-disconnect-unshared-udp.js b/test/parallel/test-cluster-disconnect-unshared-udp.js index 902538485d..85a87f3fa4 100644 --- a/test/parallel/test-cluster-disconnect-unshared-udp.js +++ b/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); }