Skip to content

Commit

Permalink
test: replace var by const test-tls-zero-clear-in
Browse files Browse the repository at this point in the history
PR-URL: #8621
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Ilkka Myller <[email protected]>
  • Loading branch information
scips authored and imyller committed Sep 20, 2016
1 parent ebbd5cb commit 5f4bc59
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/parallel/test-tls-zero-clear-in.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
'use strict';
var common = require('../common');
const common = require('../common');

if (!common.hasCrypto) {
common.skip('missing crypto');
return;
}
var tls = require('tls');
const tls = require('tls');

var fs = require('fs');
var path = require('path');
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 server = tls.createServer({
const server = tls.createServer({
cert: cert,
key: key
}, function(c) {
Expand All @@ -23,7 +23,7 @@ var server = tls.createServer({
server.close();
}, 20);
}).listen(0, common.mustCall(function() {
var conn = tls.connect({
const conn = tls.connect({
cert: cert,
key: key,
rejectUnauthorized: false,
Expand Down

0 comments on commit 5f4bc59

Please sign in to comment.