Skip to content

Commit

Permalink
test: update to const iin cluster test
Browse files Browse the repository at this point in the history
Update `var` to `const`

PR-URL: #10007
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information
ghvaldez authored and MylesBorins committed Dec 21, 2016
1 parent f1d395c commit 529b77b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/parallel/test-cluster-shared-handle-bind-privileged-port.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
'use strict';
var common = require('../common');
var assert = require('assert');
var cluster = require('cluster');
var net = require('net');
const common = require('../common');
const assert = require('assert');
const cluster = require('cluster');
const net = require('net');

if (common.isWindows) {
common.skip('not reliable on Windows');
Expand All @@ -21,7 +21,7 @@ if (cluster.isMaster) {
assert.strictEqual(exitCode, 0);
}));
} else {
var s = net.createServer(common.fail);
const s = net.createServer(common.fail);
s.listen(42, common.fail.bind(null, 'listen should have failed'));
s.on('error', common.mustCall(function(err) {
assert.strictEqual(err.code, 'EACCES');
Expand Down

0 comments on commit 529b77b

Please sign in to comment.