From 17857d4fc97d03020d3012ed890da509b294d0d2 Mon Sep 17 00:00:00 2001 From: Ben Michel Date: Fri, 6 Oct 2017 10:41:48 -0700 Subject: [PATCH] test: use common.fixtures in tls test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/15965 Reviewed-By: Colin Ihrig Reviewed-By: Ruben Bridgewater Reviewed-By: Tobias Nießen --- test/parallel/test-tls-max-send-fragment.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/parallel/test-tls-max-send-fragment.js b/test/parallel/test-tls-max-send-fragment.js index 1cbcb8e272..eca995d664 100644 --- a/test/parallel/test-tls-max-send-fragment.js +++ b/test/parallel/test-tls-max-send-fragment.js @@ -21,20 +21,21 @@ 'use strict'; const common = require('../common'); +const fixtures = require('../common/fixtures'); + if (!common.hasCrypto) common.skip('missing crypto'); const assert = require('assert'); const tls = require('tls'); -const fs = require('fs'); const buf = Buffer.allocUnsafe(10000); let received = 0; const maxChunk = 768; const server = tls.createServer({ - key: fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`), - cert: fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`) + key: fixtures.readKey('agent1-key.pem'), + cert: fixtures.readKey('agent1-cert.pem') }, function(c) { // Lower and upper limits assert(!c.setMaxSendFragment(511));