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]>
bnb authored and refack committed Oct 7, 2017

Partially verified

This commit is signed with the committer’s verified signature.
refack’s contribution has been verified via GPG key.
We cannot verify signatures from co-authors, and some of the co-authors attributed to this commit require their commits to be signed.
1 parent 6e1948e commit d56f03c
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
@@ -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')
};


0 comments on commit d56f03c

Please sign in to comment.