From a9a0146c8b85fd807ad5ccdcc33b182e65efebab Mon Sep 17 00:00:00 2001 From: Alberto Lopez de Lara Date: Fri, 6 Oct 2017 09:54:19 -0700 Subject: [PATCH] test: use common/fixtures in test-https-close PR-URL: https://github.com/nodejs/node/pull/15870 Reviewed-By: Colin Ihrig Reviewed-By: Benjamin Gruenbaum Reviewed-By: James M Snell Reviewed-By: Luigi Pinca --- test/parallel/test-https-close.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/parallel/test-https-close.js b/test/parallel/test-https-close.js index 1590f3cb5b38cf..f33754fb818940 100644 --- a/test/parallel/test-https-close.js +++ b/test/parallel/test-https-close.js @@ -3,12 +3,12 @@ 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 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') }; const connections = {};