summaryrefslogtreecommitdiff
path: root/test/parallel/test-tls-client-abort.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-tls-client-abort.js')
-rw-r--r--test/parallel/test-tls-client-abort.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/parallel/test-tls-client-abort.js b/test/parallel/test-tls-client-abort.js
index f48d22c4fc..21ee41e927 100644
--- a/test/parallel/test-tls-client-abort.js
+++ b/test/parallel/test-tls-client-abort.js
@@ -11,10 +11,10 @@ const tls = require('tls');
const fs = require('fs');
const path = require('path');
-var cert = fs.readFileSync(path.join(common.fixturesDir, 'test_cert.pem'));
-var key = fs.readFileSync(path.join(common.fixturesDir, 'test_key.pem'));
+const cert = fs.readFileSync(path.join(common.fixturesDir, 'test_cert.pem'));
+const key = fs.readFileSync(path.join(common.fixturesDir, 'test_key.pem'));
-var conn = tls.connect({cert: cert, key: key, port: common.PORT}, function() {
+const conn = tls.connect({cert: cert, key: key, port: common.PORT}, function() {
assert.ok(false); // callback should never be executed
});
conn.on('error', function() {