From 21a8a820a3e179335d677cb9b422f239d6228afd Mon Sep 17 00:00:00 2001 From: Bruce Fletcher Date: Fri, 6 Oct 2017 09:25:00 -0700 Subject: [PATCH] test: add common.fixtures to https-req-split Replaced readFileSync with fixtures.readKey. PR-URL: https://github.com/nodejs/node/pull/15801 Reviewed-By: Richard Lau Reviewed-By: Daijiro Wachi Reviewed-By: Gireesh Punathil Reviewed-By: Colin Ihrig Reviewed-By: Benjamin Gruenbaum Reviewed-By: Rich Trott --- test/parallel/test-https-req-split.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/parallel/test-https-req-split.js b/test/parallel/test-https-req-split.js index d0306cb714fb71..05fc85fc07b781 100644 --- a/test/parallel/test-https-req-split.js +++ b/test/parallel/test-https-req-split.js @@ -21,6 +21,7 @@ 'use strict'; const common = require('../common'); +const fixtures = require('../common/fixtures'); if (!common.hasCrypto) common.skip('missing crypto'); @@ -30,11 +31,10 @@ process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0'; const https = require('https'); const tls = require('tls'); -const fs = require('fs'); const options = { - key: fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`), - cert: fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`) + key: fixtures.readKey('agent1-key.pem'), + cert: fixtures.readKey('agent1-cert.pem') }; // Force splitting incoming data