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 438e7fd commit cfea677Copy full SHA for cfea677
test/parallel/test-https-timeout-server.js
@@ -25,15 +25,16 @@ const common = require('../common');
25
if (!common.hasCrypto)
26
common.skip('missing crypto');
27
28
+const fixtures = require('../common/fixtures');
29
+
30
const assert = require('assert');
31
const https = require('https');
32
33
const net = require('net');
-const fs = require('fs');
34
35
const options = {
- key: fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`),
36
- cert: fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`),
+ key: fixtures.readKey('agent1-key.pem'),
37
+ cert: fixtures.readKey('agent1-cert.pem'),
38
handshakeTimeout: 50
39
};
40
0 commit comments