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 e0011de commit be1c637Copy full SHA for be1c637
test/parallel/test-https-localaddress.js
@@ -6,13 +6,13 @@ if (!common.hasCrypto)
6
if (!common.hasMultiLocalhost())
7
common.skip('platform-specific test.');
8
9
-const fs = require('fs');
+const fixtures = require('../common/fixtures');
10
const assert = require('assert');
11
const https = require('https');
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, function(req, res) {
0 commit comments