From 42e8254f197749a636baf0498c16fe200375f728 Mon Sep 17 00:00:00 2001 From: tobyfarley Date: Fri, 6 Oct 2017 11:12:24 -0600 Subject: [PATCH] test: use fixtures in tls-friendly-error-message PR-URL: https://github.com/nodejs/node/pull/15905 Reviewed-By: Refael Ackermann Reviewed-By: Gibson Fahnestock Reviewed-By: Rich Trott Reviewed-By: James M Snell --- test/parallel/test-tls-friendly-error-message.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/parallel/test-tls-friendly-error-message.js b/test/parallel/test-tls-friendly-error-message.js index 644b298fb9..2989837b19 100644 --- a/test/parallel/test-tls-friendly-error-message.js +++ b/test/parallel/test-tls-friendly-error-message.js @@ -24,12 +24,12 @@ 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/agent1-key.pem`); -const cert = fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`); +const key = fixtures.readKey('agent1-key.pem'); +const cert = fixtures.readKey('agent1-cert.pem'); tls.createServer({ key: key, cert: cert }, common.mustCall(function(conn) { conn.end();