From 65c5ff8e921c995285d22eb9f69147d3ce4ccf06 Mon Sep 17 00:00:00 2001 From: Cheyenne Arrowsmith Date: Fri, 6 Oct 2017 09:26:38 -0700 Subject: [PATCH] test: use fixtures in test-tls-multi-key.js PR-URL: https://github.com/nodejs/node/pull/15844 Reviewed-By: Gireesh Punathil Reviewed-By: Refael Ackermann Reviewed-By: Ruben Bridgewater Reviewed-By: Luigi Pinca Reviewed-By: James M Snell --- test/parallel/test-tls-multi-key.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/parallel/test-tls-multi-key.js b/test/parallel/test-tls-multi-key.js index ca2517c481f327..6d16aa664127e3 100644 --- a/test/parallel/test-tls-multi-key.js +++ b/test/parallel/test-tls-multi-key.js @@ -3,18 +3,18 @@ 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 options = { key: [ - fs.readFileSync(`${common.fixturesDir}/keys/ec-key.pem`), - fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`), + fixtures.readKey('ec-key.pem'), + fixtures.readKey('agent1-key.pem'), ], cert: [ - fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`), - fs.readFileSync(`${common.fixturesDir}/keys/ec-cert.pem`) + fixtures.readKey('agent1-cert.pem'), + fixtures.readKey('ec-cert.pem'), ] };