From 8ea96488bcb68cda74f7a3402531567b93c30223 Mon Sep 17 00:00:00 2001 From: bitandbang Date: Fri, 6 Oct 2017 11:55:39 -0700 Subject: [PATCH] test: update fixturesDir to 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/16016 Reviewed-By: Ruben Bridgewater Reviewed-By: Richard Lau Reviewed-By: Benjamin Gruenbaum Reviewed-By: Colin Ihrig Reviewed-By: Tobias Nießen Reviewed-By: Refael Ackermann --- test/parallel/test-https-agent-servername.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/parallel/test-https-agent-servername.js b/test/parallel/test-https-agent-servername.js index 625fa45c7c1d67..985fbb3ce3f76e 100644 --- a/test/parallel/test-https-agent-servername.js +++ b/test/parallel/test-https-agent-servername.js @@ -5,12 +5,12 @@ if (!common.hasCrypto) common.skip('missing crypto'); 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') };