From 34dfce7710070fcb02d2de4aece7ed35352b4ac9 Mon Sep 17 00:00:00 2001 From: tpurcell Date: Tue, 17 Oct 2017 14:34:01 -0400 Subject: [PATCH] test: replace fixturesDir with fixtures module MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/16262 Reviewed-By: James M Snell Reviewed-By: Benjamin Gruenbaum Reviewed-By: Colin Ihrig Reviewed-By: Tobias Nießen Reviewed-By: Gireesh Punathil --- test/parallel/test-https-client-resume.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/parallel/test-https-client-resume.js b/test/parallel/test-https-client-resume.js index 6ba40dc66bba0f..d8351d3ce13135 100644 --- a/test/parallel/test-https-client-resume.js +++ b/test/parallel/test-https-client-resume.js @@ -9,11 +9,11 @@ if (!common.hasCrypto) const assert = require('assert'); const https = require('https'); const tls = require('tls'); -const fs = require('fs'); +const fixtures = require('../common/fixtures'); const options = { - key: fs.readFileSync(`${common.fixturesDir}/keys/agent2-key.pem`), - cert: fs.readFileSync(`${common.fixturesDir}/keys/agent2-cert.pem`) + key: fixtures.readKey('agent2-key.pem'), + cert: fixtures.readKey('agent2-cert.pem') }; // create server