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 <[email protected]>
Reviewed-By: Refael Ackermann <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • 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
Original file line number Diff line number Diff line change
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.