Skip to content

Commit 327a871

Browse files
pawelgoldagireeshpunathil
authored andcommittedOct 11, 2017
test: fixturesDir replaced to fixtures module
replaced fs and use of fixturesDir to fixtures module and readKey method PR-URL: #15809 Reviewed-By: Ryan Graham <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]>
1 parent 23b4bf8 commit 327a871

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

Diff for: ‎test/parallel/test-https-resume-after-renew.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ const common = require('../common');
33
if (!common.hasCrypto)
44
common.skip('missing crypto');
55

6-
const fs = require('fs');
6+
const fixtures = require('../common/fixtures');
77
const https = require('https');
88
const crypto = require('crypto');
99

1010
const options = {
11-
key: fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`),
12-
cert: fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`),
13-
ca: fs.readFileSync(`${common.fixturesDir}/keys/ca1-cert.pem`)
11+
key: fixtures.readKey('agent1-key.pem'),
12+
cert: fixtures.readKey('agent1-cert.pem'),
13+
ca: fixtures.readKey('ca1-cert.pem')
1414
};
1515

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

0 commit comments

Comments
 (0)
Please sign in to comment.