Skip to content

Commit

Permalink
test: use fixtures in test-https-localaddress.js
Browse files Browse the repository at this point in the history
PR-URL: #15811
Reviewed-By: Ryan Graham <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
  • Loading branch information
CharlesWall authored and targos committed Oct 18, 2017
1 parent a167c18 commit cc9acb0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/parallel/test-https-localaddress.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ if (!common.hasCrypto)
if (!common.hasMultiLocalhost())
common.skip('platform-specific test.');

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

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

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

0 comments on commit cc9acb0

Please sign in to comment.