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 bd49ada commit 21a8a82Copy full SHA for 21a8a82
test/parallel/test-https-req-split.js
@@ -21,6 +21,7 @@
21
22
'use strict';
23
const common = require('../common');
24
+const fixtures = require('../common/fixtures');
25
if (!common.hasCrypto)
26
common.skip('missing crypto');
27
@@ -30,11 +31,10 @@ process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
30
31
const https = require('https');
32
33
const tls = require('tls');
-const fs = require('fs');
34
35
const options = {
36
- key: fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`),
37
- cert: fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`)
+ key: fixtures.readKey('agent1-key.pem'),
+ cert: fixtures.readKey('agent1-cert.pem')
38
};
39
40
// Force splitting incoming data
0 commit comments