From 3f35fc063e005bc6b00742d81be4dc2dcfb81396 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 3bc28825edf..c2873e2e8af 100644 --- a/test/parallel/test-https-truncate.js +++ b/test/parallel/test-https-truncate.js @@ -5,12 +5,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);