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 MylesBorins committed Nov 28, 2017
1 parent 9eac5aa commit 65c5ff8
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 @@ -3,18 +3,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 65c5ff8

Please sign in to comment.