Skip to content

Commit

Permalink
test: replace common.fixtures with fixtures module
Browse files Browse the repository at this point in the history
PR-URL: #15877
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
  • Loading branch information
jeskew authored and MylesBorins committed Nov 15, 2017
1 parent 8ddf546 commit 99048fa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/parallel/test-https-agent-sockets-leak.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');

const fs = require('fs');
const https = require('https');
const assert = require('assert');
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, common.mustCall((req, res) => {
Expand Down

0 comments on commit 99048fa

Please sign in to comment.