Skip to content

Commit

Permalink
test: use fixtures in test-tls-multi-key.js
Browse files Browse the repository at this point in the history
PR-URL: #15844
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
dinophile authored and targos committed Oct 18, 2017
1 parent 61b0af0 commit f1c30aa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/parallel/test-tls-multi-key.js
Expand Up @@ -24,18 +24,18 @@ 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 options = {
key: [
fs.readFileSync(`${common.fixturesDir}/keys/ec-key.pem`),
fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`),
fixtures.readKey('ec-key.pem'),
fixtures.readKey('agent1-key.pem'),
],
cert: [
fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`),
fs.readFileSync(`${common.fixturesDir}/keys/ec-cert.pem`)
fixtures.readKey('agent1-cert.pem'),
fixtures.readKey('ec-cert.pem'),
]
};

Expand Down

0 comments on commit f1c30aa

Please sign in to comment.