From 100e3fd74a486cbeb04991a11e9922652802cda6 Mon Sep 17 00:00:00 2001 From: Pawel Golda Date: Fri, 6 Oct 2017 09:39:02 -0700 Subject: [PATCH] test: fixturesDir replaced to fixtures module replaced fs and use of fixturesDir to fixtures module and readKey method PR-URL: https://github.com/nodejs/node/pull/15809 Reviewed-By: Ryan Graham Reviewed-By: Colin Ihrig Reviewed-By: Richard Lau Reviewed-By: Benjamin Gruenbaum Reviewed-By: Luigi Pinca Reviewed-By: James M Snell Reviewed-By: Gireesh Punathil --- test/parallel/test-https-resume-after-renew.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/parallel/test-https-resume-after-renew.js b/test/parallel/test-https-resume-after-renew.js index eb31923037..5a621e8f56 100644 --- a/test/parallel/test-https-resume-after-renew.js +++ b/test/parallel/test-https-resume-after-renew.js @@ -3,14 +3,14 @@ const common = require('../common'); if (!common.hasCrypto) common.skip('missing crypto'); -const fs = require('fs'); +const fixtures = require('../common/fixtures'); const https = require('https'); const crypto = require('crypto'); 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.createServer(options, function(req, res) {