From 7d08b3316bb8ede180fd5a84b935c7ee558126c9 Mon Sep 17 00:00:00 2001 From: Greg Matthews Date: Fri, 6 Oct 2017 09:52:28 -0700 Subject: [PATCH 1/2] test: replace commonFixturesDir with common.fixtures module --- test/parallel/test-https-eof-for-eom.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-https-eof-for-eom.js b/test/parallel/test-https-eof-for-eom.js index 3c724fe6342dfc..7ce67a7509606c 100644 --- a/test/parallel/test-https-eof-for-eom.js +++ b/test/parallel/test-https-eof-for-eom.js @@ -36,10 +36,11 @@ 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/agent1-key.pem`), - cert: fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`) + key: fixtures.readKey('agent1-key.pem'), + cert: fixtures.readKey('agent1-cert.pem') }; From 55517fa5494ad46bbf8af02db0845fab0985977b Mon Sep 17 00:00:00 2001 From: Greg Matthews Date: Fri, 6 Oct 2017 10:16:07 -0700 Subject: [PATCH 2/2] test: remove unused fs module from test-https-eof-for-eom --- test/parallel/test-https-eof-for-eom.js | 1 - 1 file changed, 1 deletion(-) diff --git a/test/parallel/test-https-eof-for-eom.js b/test/parallel/test-https-eof-for-eom.js index 7ce67a7509606c..2e42680c7d6d5f 100644 --- a/test/parallel/test-https-eof-for-eom.js +++ b/test/parallel/test-https-eof-for-eom.js @@ -35,7 +35,6 @@ 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 = {