From 516fda6c64f69d3e50f4e445afdec44b0a441e58 Mon Sep 17 00:00:00 2001 From: "James M. Greene" Date: Fri, 6 Oct 2017 09:44:56 -0700 Subject: [PATCH] test: update 'fixturesDir' refs in a test file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This was a task from Code & Learn at NINA17. PR-URL: https://github.com/nodejs/node/pull/15824 Reviewed-By: Ryan Graham Reviewed-By: Refael Ackermann Reviewed-By: Richard Lau Reviewed-By: Colin Ihrig Reviewed-By: Benjamin Gruenbaum Reviewed-By: Tobias Nießen --- test/parallel/test-http-url.parse-https.request.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/parallel/test-http-url.parse-https.request.js b/test/parallel/test-http-url.parse-https.request.js index b644e7530ff828..87b7ac02e90573 100644 --- a/test/parallel/test-http-url.parse-https.request.js +++ b/test/parallel/test-http-url.parse-https.request.js @@ -23,16 +23,16 @@ const common = require('../common'); if (!common.hasCrypto) common.skip('missing crypto'); +const { readKey } = require('../common/fixtures'); const assert = require('assert'); const https = require('https'); const url = require('url'); -const fs = require('fs'); // https options const httpsOptions = { - key: fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`), - cert: fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`) + key: readKey('agent1-key.pem'), + cert: readKey('agent1-cert.pem') }; function check(request) {