Skip to content

Commit 107acb1

Browse files
bnbMylesBorins
authored andcommitted
test: update fixturesDir to fixtures.readKey
PR-URL: #16016 Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Refael Ackermann <[email protected]>
1 parent 643a2c6 commit 107acb1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/parallel/test-https-agent-servername.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ if (!common.hasCrypto)
55
common.skip('missing crypto');
66

77
const https = require('https');
8-
const fs = require('fs');
8+
const fixtures = require('../common/fixtures');
99

1010
const options = {
11-
key: fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`),
12-
cert: fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`),
13-
ca: fs.readFileSync(`${common.fixturesDir}/keys/ca1-cert.pem`)
11+
key: fixtures.readKey('agent1-key.pem'),
12+
cert: fixtures.readKey('agent1-cert.pem'),
13+
ca: fixtures.readKey('ca1-cert.pem')
1414
};
1515

1616

0 commit comments

Comments
 (0)