Skip to content

Commit 58abc82

Browse files
chichiwangMylesBorins
authored andcommitted
test: use common.fixtures module
Use common.fixtures module in test-https-agent-session-eviction PR-URL: #16012 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 27274c7 commit 58abc82

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/parallel/test-https-agent-session-eviction.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
'use strict';
22

33
const common = require('../common');
4+
const { readKey } = require('../common/fixtures');
45

56
if (!common.hasCrypto)
67
common.skip('missing crypto');
78

89
const assert = require('assert');
910
const https = require('https');
10-
const fs = require('fs');
1111
const SSL_OP_NO_TICKET = require('crypto').constants.SSL_OP_NO_TICKET;
1212

1313
const options = {
14-
key: fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`),
15-
cert: fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`),
14+
key: readKey('agent1-key.pem'),
15+
cert: readKey('agent1-cert.pem'),
1616
secureOptions: SSL_OP_NO_TICKET
1717
};
1818

0 commit comments

Comments
 (0)