Skip to content

Commit 48d862b

Browse files
CharlesWalltargos
authored andcommitted
test: use fixtures in test-https-localaddress.js
PR-URL: #15811 Reviewed-By: Ryan Graham <r.m.graham@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
1 parent ce88af1 commit 48d862b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/parallel/test-https-localaddress.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ if (!common.hasCrypto)
2727
if (!common.hasMultiLocalhost())
2828
common.skip('platform-specific test.');
2929

30-
const fs = require('fs');
30+
const fixtures = require('../common/fixtures');
3131
const assert = require('assert');
3232
const https = require('https');
3333

3434
const options = {
35-
key: fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`),
36-
cert: fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`)
35+
key: fixtures.readKey('agent1-key.pem'),
36+
cert: fixtures.readKey('agent1-cert.pem')
3737
};
3838

3939
const server = https.createServer(options, function(req, res) {

0 commit comments

Comments
 (0)