From 667cbd7b68413ccfcce5bf0ab948a0706062ea1d 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 ee426fe683493d..2aba1437fdb4e4 100644 --- a/test/parallel/test-http-url.parse-https.request.js +++ b/test/parallel/test-http-url.parse-https.request.js @@ -2,16 +2,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) {