From 1ca64a077ba35d00e5a6a52046b8fda295d4c10a Mon Sep 17 00:00:00 2001 From: suraiyah Date: Fri, 6 Oct 2017 10:12:29 -0700 Subject: [PATCH 1/2] test: replace common.fixturesDir with common.fixtures --- test/parallel/test-https-byteswritten.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-https-byteswritten.js b/test/parallel/test-https-byteswritten.js index 8f4d761c02b7d4..6e7d6a4deea4ad 100644 --- a/test/parallel/test-https-byteswritten.js +++ b/test/parallel/test-https-byteswritten.js @@ -21,6 +21,7 @@ 'use strict'; const common = require('../common'); +const fixtures = require('../common/fixtures'); if (!common.hasCrypto) common.skip('missing crypto'); @@ -29,8 +30,8 @@ const fs = require('fs'); const https = require('https'); const options = { - key: fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`), - cert: fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`) + key: fs.readFileSync(`${fixtures.fixturesDir}/keys/agent1-key.pem`), + cert: fs.readFileSync(`${fixtures.fixturesDir}/keys/agent1-cert.pem`) }; const body = 'hello world\n'; From 11568f7e2a3039beb984c8ca689197e6e0b63ae4 Mon Sep 17 00:00:00 2001 From: suraiyah Date: Mon, 9 Oct 2017 07:50:28 -0700 Subject: [PATCH 2/2] test: use the dedicated fixtures.readkey --- test/parallel/test-https-byteswritten.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/parallel/test-https-byteswritten.js b/test/parallel/test-https-byteswritten.js index 6e7d6a4deea4ad..8ce0f7d8225033 100644 --- a/test/parallel/test-https-byteswritten.js +++ b/test/parallel/test-https-byteswritten.js @@ -26,12 +26,11 @@ if (!common.hasCrypto) common.skip('missing crypto'); const assert = require('assert'); -const fs = require('fs'); const https = require('https'); const options = { - key: fs.readFileSync(`${fixtures.fixturesDir}/keys/agent1-key.pem`), - cert: fs.readFileSync(`${fixtures.fixturesDir}/keys/agent1-cert.pem`) + key: fixtures.readKey('agent1-key.pem'), + cert: fixtures.readKey('agent1-cert.pem') }; const body = 'hello world\n';