Skip to content

Commit

Permalink
test: fixturesDir replaced to fixtures module
Browse files Browse the repository at this point in the history
replaced fs and use of fixturesDir to fixtures module and readKey method

PR-URL: #15809
Reviewed-By: Ryan Graham <r.m.graham@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
  • Loading branch information
pawelgolda authored and targos committed Oct 18, 2017
1 parent d7ec89c commit d4b454d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/parallel/test-https-resume-after-renew.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');

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

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.createServer(options, function(req, res) {
Expand Down

0 comments on commit d4b454d

Please sign in to comment.