Skip to content

Commit c4db4e4

Browse files
CharlesWallMylesBorins
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 c252d87 commit c4db4e4

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
@@ -6,13 +6,13 @@ if (!common.hasCrypto)
66
if (!common.hasMultiLocalhost())
77
common.skip('platform-specific test.');
88

9-
const fs = require('fs');
9+
const fixtures = require('../common/fixtures');
1010
const assert = require('assert');
1111
const https = require('https');
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: fixtures.readKey('agent1-key.pem'),
15+
cert: fixtures.readKey('agent1-cert.pem')
1616
};
1717

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

0 commit comments

Comments
 (0)