summaryrefslogtreecommitdiff
path: root/test/parallel/test-tls-handshake-error.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-tls-handshake-error.js')
-rw-r--r--test/parallel/test-tls-handshake-error.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-tls-handshake-error.js b/test/parallel/test-tls-handshake-error.js
index 7623f816f3..4909fa45e1 100644
--- a/test/parallel/test-tls-handshake-error.js
+++ b/test/parallel/test-tls-handshake-error.js
@@ -11,13 +11,13 @@ const tls = require('tls');
const fs = require('fs');
-var server = tls.createServer({
+const server = tls.createServer({
key: fs.readFileSync(common.fixturesDir + '/keys/agent1-key.pem'),
cert: fs.readFileSync(common.fixturesDir + '/keys/agent1-cert.pem'),
rejectUnauthorized: true
}, function(c) {
}).listen(0, common.mustCall(function() {
- var c = tls.connect({
+ const c = tls.connect({
port: this.address().port,
ciphers: 'RC4'
}, function() {