From 48d862b0d535003c2544d7bc26270e4de7e3dd17 Mon Sep 17 00:00:00 2001 From: Charles T Wall III Date: Fri, 6 Oct 2017 12:38:04 -0400 Subject: [PATCH] test: use fixtures in test-https-localaddress.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/15811 Reviewed-By: Ryan Graham Reviewed-By: Benjamin Gruenbaum Reviewed-By: Colin Ihrig Reviewed-By: Tobias Nießen Reviewed-By: James M Snell Reviewed-By: Gireesh Punathil --- test/parallel/test-https-localaddress.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/parallel/test-https-localaddress.js b/test/parallel/test-https-localaddress.js index 1c5669be30c1fa..bfa24457dac64e 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) {