Skip to content

Commit 516fda6

Browse files
JamesMGreeneMylesBorins
authored andcommitted
test: update 'fixturesDir' refs in a test file
This was a task from Code & Learn at NINA17. PR-URL: #15824 Reviewed-By: Ryan Graham <r.m.graham@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de>
1 parent e1a1d2e commit 516fda6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/parallel/test-http-url.parse-https.request.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,16 @@
2323
const common = require('../common');
2424
if (!common.hasCrypto)
2525
common.skip('missing crypto');
26+
const { readKey } = require('../common/fixtures');
2627

2728
const assert = require('assert');
2829
const https = require('https');
2930
const url = require('url');
30-
const fs = require('fs');
3131

3232
// https options
3333
const httpsOptions = {
34-
key: fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`),
35-
cert: fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`)
34+
key: readKey('agent1-key.pem'),
35+
cert: readKey('agent1-cert.pem')
3636
};
3737

3838
function check(request) {

0 commit comments

Comments
 (0)