Skip to content

Commit

Permalink
test: replace fixturesDir with fixtures.readKey
Browse files Browse the repository at this point in the history
PR-URL: #15948
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Joyee Cheung <[email protected]>
Reviewed-By: Gibson Fahnestock <[email protected]>
  • Loading branch information
Thomas Schorn authored and MylesBorins committed Oct 11, 2017
1 parent 73231d9 commit 4594315
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/parallel/test-https-agent-secure-protocol.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ if (!common.hasCrypto)

const assert = require('assert');
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')
};

const server = https.Server(options, function(req, res) {
Expand Down

0 comments on commit 4594315

Please sign in to comment.