summaryrefslogtreecommitdiff
path: root/test/parallel/test-https-localaddress.js
diff options
context:
space:
mode:
authorCharles T Wall III <CharlesTWall3@gmail.com>2017-10-06 12:38:04 -0400
committerJames M Snell <jasnell@gmail.com>2017-10-12 06:06:27 -0700
commitb9c8fd8338be88c074a91bd01a1101ba828d1fd4 (patch)
tree260259fee437869380bd713553b440b2d7cc48dd /test/parallel/test-https-localaddress.js
parent70a19ae7820b85e8535c7db27151baa3d0705287 (diff)
downloadandroid-node-v8-b9c8fd8338be88c074a91bd01a1101ba828d1fd4.tar.gz
android-node-v8-b9c8fd8338be88c074a91bd01a1101ba828d1fd4.tar.bz2
android-node-v8-b9c8fd8338be88c074a91bd01a1101ba828d1fd4.zip
test: use fixtures in test-https-localaddress.js
PR-URL: https://github.com/nodejs/node/pull/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>
Diffstat (limited to 'test/parallel/test-https-localaddress.js')
-rw-r--r--test/parallel/test-https-localaddress.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/parallel/test-https-localaddress.js b/test/parallel/test-https-localaddress.js
index 1c5669be30..bfa24457da 100644
--- a/test/parallel/test-https-localaddress.js
+++ b/test/parallel/test-https-localaddress.js
@@ -27,13 +27,13 @@ if (!common.hasCrypto)
if (!common.hasMultiLocalhost())
common.skip('platform-specific test.');
-const fs = require('fs');
+const fixtures = require('../common/fixtures');
const assert = require('assert');
const https = require('https');
const options = {
- key: fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`),
- cert: fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`)
+ key: fixtures.readKey('agent1-key.pem'),
+ cert: fixtures.readKey('agent1-cert.pem')
};
const server = https.createServer(options, function(req, res) {