From 4594315eae36f606636edee5302bb5d4caec0a25 Mon Sep 17 00:00:00 2001 From: Thomas Schorn Date: Fri, 6 Oct 2017 10:37:36 -0700 Subject: [PATCH] test: replace fixturesDir with fixtures.readKey MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/15948 Reviewed-By: Ruben Bridgewater Reviewed-By: Tobias Nießen Reviewed-By: Colin Ihrig Reviewed-By: Joyee Cheung Reviewed-By: Gibson Fahnestock --- test/parallel/test-https-agent-secure-protocol.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/parallel/test-https-agent-secure-protocol.js b/test/parallel/test-https-agent-secure-protocol.js index 4839dd7c460d6a..4963b55febe345 100644 --- a/test/parallel/test-https-agent-secure-protocol.js +++ b/test/parallel/test-https-agent-secure-protocol.js @@ -5,12 +5,12 @@ if (!common.hasCrypto) const assert = require('assert'); const https = require('https'); -const fs = require('fs'); +const fixtures = require('../common/fixtures'); const options = { - key: fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`), - cert: fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`), - ca: fs.readFileSync(`${common.fixturesDir}/keys/ca1-cert.pem`) + key: fixtures.readKey('agent1-key.pem'), + cert: fixtures.readKey('agent1-cert.pem'), + ca: fixtures.readKey('ca1-cert.pem') }; const server = https.Server(options, function(req, res) {