Skip to content

Commit e9d31bc

Browse files
letthewookieewinMylesBorins
authored andcommitted
test: replaced common.fixturesDir with readKey
PR-URL: #15933 Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Daniel Bevenius <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]>
1 parent 054f8f6 commit e9d31bc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/parallel/test-https-client-get-url.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
'use strict';
2323
const common = require('../common');
24+
const fixtures = require('../common/fixtures');
2425
if (!common.hasCrypto)
2526
common.skip('missing crypto');
2627

@@ -29,14 +30,13 @@ process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
2930

3031
const assert = require('assert');
3132
const https = require('https');
32-
const fs = require('fs');
3333
const url = require('url');
3434

3535
const URL = url.URL;
3636

3737
const options = {
38-
key: fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`),
39-
cert: fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`)
38+
key: fixtures.readKey('agent1-key.pem'),
39+
cert: fixtures.readKey('agent1-cert.pem')
4040
};
4141

4242
const server = https.createServer(options, common.mustCall((req, res) => {

0 commit comments

Comments
 (0)