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 7736529 commit 9c229b4Copy full SHA for 9c229b4
test/parallel/test-https-timeout-server.js
@@ -4,15 +4,16 @@ const common = require('../common');
4
if (!common.hasCrypto)
5
common.skip('missing crypto');
6
7
+const fixtures = require('../common/fixtures');
8
+
9
const assert = require('assert');
10
const https = require('https');
11
12
const net = require('net');
-const fs = require('fs');
13
14
const options = {
- 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
handshakeTimeout: 50
18
};
19
0 commit comments