summaryrefslogtreecommitdiff
path: root/test/parallel/test-tls-ecdh-disable.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-tls-ecdh-disable.js')
-rw-r--r--test/parallel/test-tls-ecdh-disable.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/parallel/test-tls-ecdh-disable.js b/test/parallel/test-tls-ecdh-disable.js
index df51c5d085..a0555e8778 100644
--- a/test/parallel/test-tls-ecdh-disable.js
+++ b/test/parallel/test-tls-ecdh-disable.js
@@ -11,17 +11,17 @@ const tls = require('tls');
const exec = require('child_process').exec;
const fs = require('fs');
-var options = {
+const options = {
key: fs.readFileSync(common.fixturesDir + '/keys/agent2-key.pem'),
cert: fs.readFileSync(common.fixturesDir + '/keys/agent2-cert.pem'),
ciphers: 'ECDHE-RSA-RC4-SHA',
ecdhCurve: false
};
-var server = tls.createServer(options, common.fail);
+const server = tls.createServer(options, common.fail);
server.listen(0, '127.0.0.1', common.mustCall(function() {
- var cmd = '"' + common.opensslCli + '" s_client -cipher ' + options.ciphers +
+ let cmd = '"' + common.opensslCli + '" s_client -cipher ' + options.ciphers +
` -connect 127.0.0.1:${this.address().port}`;
// for the performance and stability issue in s_client on Windows