From cf31eb75329914ee575f42ce5ea883e121bd2598 Mon Sep 17 00:00:00 2001 From: jpaulptr Date: Fri, 6 Oct 2017 10:28:56 -0700 Subject: [PATCH] test: use common/fixtures in test-https-agent PR-URL: https://github.com/nodejs/node/pull/15941 Reviewed-By: Rich Trott Reviewed-By: Colin Ihrig Reviewed-By: James M Snell --- test/parallel/test-https-agent.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/parallel/test-https-agent.js b/test/parallel/test-https-agent.js index 24086d1f34568d..9e0a23099abf12 100644 --- a/test/parallel/test-https-agent.js +++ b/test/parallel/test-https-agent.js @@ -1,15 +1,16 @@ 'use strict'; const common = require('../common'); + if (!common.hasCrypto) common.skip('missing crypto'); +const fixtures = require('../common/fixtures'); const assert = require('assert'); const https = require('https'); -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') };