From 0f63c385e8ab3aed1e4705bd8420540792724b42 Mon Sep 17 00:00:00 2001 From: Michael Pal Date: Fri, 6 Oct 2017 14:03:52 -0400 Subject: [PATCH] test: added fixtures module MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/15980 Reviewed-By: Ruben Bridgewater Reviewed-By: Tobias Nießen Reviewed-By: Colin Ihrig Reviewed-By: James M Snell Reviewed-By: Luigi Pinca Reviewed-By: Refael Ackermann --- test/parallel/test-tls-client-getephemeralkeyinfo.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/parallel/test-tls-client-getephemeralkeyinfo.js b/test/parallel/test-tls-client-getephemeralkeyinfo.js index 53e0144ac7..fcb93aa3b6 100644 --- a/test/parallel/test-tls-client-getephemeralkeyinfo.js +++ b/test/parallel/test-tls-client-getephemeralkeyinfo.js @@ -2,19 +2,20 @@ const common = require('../common'); if (!common.hasCrypto) common.skip('missing crypto'); +const fixtures = require('../common/fixtures'); const assert = require('assert'); const tls = require('tls'); const fs = require('fs'); -const key = fs.readFileSync(`${common.fixturesDir}/keys/agent2-key.pem`); -const cert = fs.readFileSync(`${common.fixturesDir}/keys/agent2-cert.pem`); +const key = fixtures.readKey('agent2-key.pem'); +const cert = fixtures.readKey('agent2-cert.pem'); let ntests = 0; let nsuccess = 0; function loadDHParam(n) { - let path = common.fixturesDir; + let path = fixtures.fixturesDir; if (n !== 'error') path += '/keys'; return fs.readFileSync(`${path}/dh${n}.pem`); }