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 2515cad commit 4495388Copy full SHA for 4495388
test/parallel/test-https-agent-session-eviction.js
@@ -1,18 +1,18 @@
1
'use strict';
2
3
const common = require('../common');
4
+const { readKey } = require('../common/fixtures');
5
6
if (!common.hasCrypto)
7
common.skip('missing crypto');
8
9
const assert = require('assert');
10
const https = require('https');
-const fs = require('fs');
11
const SSL_OP_NO_TICKET = require('crypto').constants.SSL_OP_NO_TICKET;
12
13
const options = {
14
- key: fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`),
15
- cert: fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`),
+ key: readKey('agent1-key.pem'),
+ cert: readKey('agent1-cert.pem'),
16
secureOptions: SSL_OP_NO_TICKET
17
};
18
0 commit comments