Skip to content

Commit

Permalink
Called fixturesDir directly from test-tls-client-getephemeralkeyinfo.js
Browse files Browse the repository at this point in the history
  • Loading branch information
cougarkhan committed Oct 6, 2017
1 parent 4f339b5 commit 88e9c4c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/parallel/test-tls-client-getephemeralkeyinfo.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
'use strict';
const common = require('../common');
const fixtures = require('../common/fixtures');
if (!common.hasCrypto)
common.skip('missing crypto');

const assert = require('assert');
const tls = require('tls');
const fs = require('fs');

const key = fs.readFileSync(`${common.fixturesDir}/keys/agent2-key.pem`);
const cert = fs.readFileSync(`${common.fixturesDir}/keys/agent2-cert.pem`);
const key = fs.readFileSync(`${fixtures.fixturesDir}/keys/agent2-key.pem`);
const cert = fs.readFileSync(`${fixtures.fixturesDir}/keys/agent2-cert.pem`);


let ntests = 0;
let nsuccess = 0;

function loadDHParam(n) {
let path = common.fixturesDir;
let path = fixtures.fixturesDir;
if (n !== 'error') path += '/keys';
return fs.readFileSync(`${path}/dh${n}.pem`);
}
Expand Down

0 comments on commit 88e9c4c

Please sign in to comment.