From c35a3e004e17925a0591d7956c872a8400b9fb15 Mon Sep 17 00:00:00 2001 From: Gene Wu Date: Fri, 6 Oct 2017 10:01:16 -0700 Subject: [PATCH] test: use fixtures module in test-https-truncate PR-URL: https://github.com/nodejs/node/pull/15875 Reviewed-By: Colin Ihrig Reviewed-By: Yuta Hiroto Reviewed-By: James M Snell Reviewed-By: Ruben Bridgewater --- test/parallel/test-https-truncate.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/parallel/test-https-truncate.js b/test/parallel/test-https-truncate.js index dcefcca104ef36..d2a3179c0d178d 100644 --- a/test/parallel/test-https-truncate.js +++ b/test/parallel/test-https-truncate.js @@ -26,12 +26,11 @@ if (!common.hasCrypto) common.skip('missing crypto'); const assert = require('assert'); +const fixtures = require('../common/fixtures'); const https = require('https'); -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'); // number of bytes discovered empirically to trigger the bug const data = Buffer.alloc(1024 * 32 + 1);