Skip to content

Commit

Permalink
test: update to const and strictEqual
Browse files Browse the repository at this point in the history
Update `var` to `const` and `assert.equal` to `assert.strictEqual`
  • Loading branch information
ghvaldez committed Dec 1, 2016
1 parent 8264a22 commit facf714
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 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 @@ -18,13 +18,13 @@ if (cluster.isMaster) {
// Master opens and binds the socket and shares it with the worker.
cluster.schedulingPolicy = cluster.SCHED_NONE;
cluster.fork().on('exit', common.mustCall(function(exitCode) {
assert.equal(exitCode, 0);
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.equal(err.code, 'EACCES');
assert.strictEqual(err.code, 'EACCES');
process.disconnect();
}));
}

0 comments on commit facf714

Please sign in to comment.