From 909e587a933bee4b2813c21352471579c9c2af85 Mon Sep 17 00:00:00 2001 From: rhalldearn Date: Fri, 6 Oct 2017 09:57:14 -0700 Subject: [PATCH] test: replaced common.fixturesDir with readKey PR-URL: https://github.com/nodejs/node/pull/15952 Reviewed-By: Ruben Bridgewater Reviewed-By: Colin Ihrig Reviewed-By: Joyee Cheung Reviewed-By: Gibson Fahnestock --- test/parallel/test-https-agent-sni.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/parallel/test-https-agent-sni.js b/test/parallel/test-https-agent-sni.js index a06ce439fa43d9..80278ed2d8fe96 100644 --- a/test/parallel/test-https-agent-sni.js +++ b/test/parallel/test-https-agent-sni.js @@ -1,15 +1,15 @@ 'use strict'; const common = require('../common'); +const fixtures = require('../common/fixtures'); if (!common.hasCrypto) common.skip('missing crypto'); 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') }; const TOTAL = 4;