Skip to content

Commit

Permalink
test: update fixturesDir to fixtures.readKey
Browse files Browse the repository at this point in the history
PR-URL: #16016
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Refael Ackermann <[email protected]>
  • Loading branch information
bnb authored and MylesBorins committed Nov 14, 2017
1 parent 8664df1 commit f67c038
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/parallel/test-https-agent-servername.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ if (!common.hasCrypto)
common.skip('missing crypto');

const https = require('https');
const fs = require('fs');
const fixtures = require('../common/fixtures');

const options = {
key: fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`),
cert: fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`),
ca: fs.readFileSync(`${common.fixturesDir}/keys/ca1-cert.pem`)
key: fixtures.readKey('agent1-key.pem'),
cert: fixtures.readKey('agent1-cert.pem'),
ca: fixtures.readKey('ca1-cert.pem')
};


Expand Down

0 comments on commit f67c038

Please sign in to comment.