Skip to content
Permalink
Browse files

test: replace common.fixtures with fixtures module

PR-URL: #15877
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
  • Loading branch information...
jeskew authored and MylesBorins committed Oct 6, 2017
1 parent 575a920 commit 07c14f3054efa51574d9e0ce9a09341255a37a99
Showing with 4 additions and 4 deletions.
  1. +4 −4 test/parallel/test-https-agent-sockets-leak.js
@@ -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) => {

0 comments on commit 07c14f3

Please sign in to comment.
You can’t perform that action at this time.