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 8a8cd40 commit c29e366Copy full SHA for c29e366
test/parallel/test-https-server-keep-alive-timeout.js
@@ -1,18 +1,19 @@
1
'use strict';
2
3
const common = require('../common');
4
+
5
if (!common.hasCrypto)
6
common.skip('missing crypto');
7
8
+const fixtures = require('../common/fixtures');
9
const https = require('https');
10
const tls = require('tls');
-const fs = require('fs');
11
12
const tests = [];
13
14
const serverOptions = {
- 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'),
16
+ cert: fixtures.readKey('agent1-cert.pem')
17
};
18
19
function test(fn) {
0 commit comments