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 <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
  • Loading branch information
ghvaldez authored and MylesBorins committed Dec 20, 2016
1 parent 27c9171 commit 9103c3d
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 9103c3d

Please sign in to comment.