From f1c30aa2c557b713ba6e458add1293a4932edcc8 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 6e1a3c8777eeba..8c0722f858c748 100644 --- a/test/parallel/test-tls-multi-key.js +++ b/test/parallel/test-tls-multi-key.js @@ -24,18 +24,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'), ] };