Skip to content

Commit 71e6879

Browse files
pawelgoldaMylesBorins
authored andcommitted
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 <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 d70f9f6 commit 71e6879

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

test/parallel/test-https-resume-after-renew.js

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
'use strict';
22
const common = require('../common');
3-
const fs = require('fs');
3+
4+
if (!common.hasCrypto)
5+
common.skip('missing crypto');
6+
7+
const fixtures = require('../common/fixtures');
48
const https = require('https');
59
const crypto = require('crypto');
610

711
const options = {
8-
key: fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`),
9-
cert: fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`),
10-
ca: fs.readFileSync(`${common.fixturesDir}/keys/ca1-cert.pem`)
12+
key: fixtures.readKey('agent1-key.pem'),
13+
cert: fixtures.readKey('agent1-cert.pem'),
14+
ca: fixtures.readKey('ca1-cert.pem')
1115
};
1216

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

0 commit comments

Comments
 (0)