We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f8b315 commit 000965dCopy full SHA for 000965d
test/parallel/test-https-client-get-url.js
@@ -1,5 +1,6 @@
1
'use strict';
2
const common = require('../common');
3
+const fixtures = require('../common/fixtures');
4
if (!common.hasCrypto)
5
common.skip('missing crypto');
6
@@ -8,11 +9,10 @@ process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
8
9
10
const assert = require('assert');
11
const https = require('https');
-const fs = require('fs');
12
13
const options = {
14
- key: fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`),
15
- cert: fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`)
+ key: fixtures.readKey('agent1-key.pem'),
+ cert: fixtures.readKey('agent1-cert.pem')
16
};
17
18
const server = https.createServer(options, common.mustCall(function(req, res) {
0 commit comments