Skip to content

Commit 100e3fd

Browse files
pawelgoldaaddaleax
authored andcommitted
test: fixturesDir replaced to fixtures module
replaced fs and use of fixturesDir to fixtures module and readKey method PR-URL: nodejs/node#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>
1 parent 5aeda4d commit 100e3fd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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)