From 48e1320c441a6ca4b0f7b831e90ee8c117be3776 Mon Sep 17 00:00:00 2001 From: Lance Barlaan Date: Fri, 6 Oct 2017 09:54:41 -0700 Subject: [PATCH] test: use fixtures module PR-URL: https://github.com/nodejs/node/pull/15872 Reviewed-By: Rich Trott Reviewed-By: Ruben Bridgewater --- test/parallel/test-tls-inception.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/parallel/test-tls-inception.js b/test/parallel/test-tls-inception.js index 50debbc75fcd00..2a5c82b8a5173a 100644 --- a/test/parallel/test-tls-inception.js +++ b/test/parallel/test-tls-inception.js @@ -1,5 +1,6 @@ 'use strict'; const common = require('../common'); +const fixtures = require('../common/fixtures'); if (!common.hasCrypto) common.skip('missing crypto'); @@ -7,13 +8,11 @@ if (!common.hasCrypto) const assert = require('assert'); const tls = require('tls'); -const fs = require('fs'); -const path = require('path'); const net = require('net'); const options = { - key: fs.readFileSync(path.join(common.fixturesDir, 'test_key.pem')), - cert: fs.readFileSync(path.join(common.fixturesDir, 'test_cert.pem')) + key: fixtures.readSync('test_key.pem'), + cert: fixtures.readSync('test_cert.pem') }; const body = 'A'.repeat(40000);