Skip to content

Commit facf714

Browse files
committed
test: update to const and strictEqual
Update `var` to `const` and `assert.equal` to `assert.strictEqual`
1 parent 8264a22 commit facf714

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test/parallel/test-cluster-shared-handle-bind-privileged-port.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
'use strict';
2-
var common = require('../common');
3-
var assert = require('assert');
4-
var cluster = require('cluster');
5-
var net = require('net');
2+
const common = require('../common');
3+
const assert = require('assert');
4+
const cluster = require('cluster');
5+
const net = require('net');
66

77
if (common.isWindows) {
88
common.skip('not reliable on Windows');
@@ -18,13 +18,13 @@ if (cluster.isMaster) {
1818
// Master opens and binds the socket and shares it with the worker.
1919
cluster.schedulingPolicy = cluster.SCHED_NONE;
2020
cluster.fork().on('exit', common.mustCall(function(exitCode) {
21-
assert.equal(exitCode, 0);
21+
assert.strictEqual(exitCode, 0);
2222
}));
2323
} else {
24-
var s = net.createServer(common.fail);
24+
const s = net.createServer(common.fail);
2525
s.listen(42, common.fail.bind(null, 'listen should have failed'));
2626
s.on('error', common.mustCall(function(err) {
27-
assert.equal(err.code, 'EACCES');
27+
assert.strictEqual(err.code, 'EACCES');
2828
process.disconnect();
2929
}));
3030
}

0 commit comments

Comments
 (0)