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 <ruben@bridgewater.de>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Refael Ackermann <refack@gmail.com>
  • Loading branch information
bnb authored and MylesBorins committed Nov 21, 2017
1 parent 1f7d112 commit 2e039d2
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 2e039d2

Please sign in to comment.