From c4db4e44b8187dd4ec226e801a79a6ba8d42b0a7 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 5fab51e80c9872..ef511251036ef6 100644 --- a/test/parallel/test-https-localaddress.js +++ b/test/parallel/test-https-localaddress.js @@ -6,13 +6,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) {