From 544cbd788436f081faebce6a05b96dbcdad785b9 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 7cca682101fa0b..737bd6692f26aa 100644 --- a/test/parallel/test-https-agent-secure-protocol.js +++ b/test/parallel/test-https-agent-secure-protocol.js @@ -8,12 +8,12 @@ if (!common.hasCrypto) { } 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) {