8000
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 e81fc8a commit 71daa68Copy full SHA for 71daa68
test/parallel/test-https-simple.js
@@ -1,16 +1,16 @@
1
'use strict';
2
const common = require('../common');
3
+const fixtures = require('../common/fixtures');
4
5
if (!common.hasCrypto)
6
common.skip('missing crypto');
7
8
const assert = require('assert');
9
const https = require('https');
-const fs = require('fs');
10
11
const options = {
12
- key: fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`),
13
- cert: fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`)
+ key: fixtures.readKey('agent1-key.pem'),
+ cert: fixtures.readKey('agent1-cert.pem')
14
};
15
16
const tests = 2;
0 commit comments