Permalink
Browse files

test: added fixtures module

PR-URL: #15980
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
  • Loading branch information...
cougarkhan authored and refack committed Oct 6, 2017
1 parent e5ad545 commit eac257f6008ee6ba4b9df21e0b6b6de4e3c636e3
Showing with 4 additions and 3 deletions.
  1. +4 −3 test/parallel/test-tls-client-getephemeralkeyinfo.js
@@ -2,19 +2,20 @@
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const fixtures = require('../common/fixtures');
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 = fixtures.readKey('agent2-key.pem');
const cert = fixtures.readKey('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`);
}

0 comments on commit eac257f

Please sign in to comment.