Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGene Wu <genewoo@gmail.com>2017-10-06 20:01:16 +0300
committerMyles Borins <mylesborins@google.com>2017-10-24 00:17:29 +0300
commita87b202530a1f13a7de7f8144b25eb786b4e9bf7 (patch)
treee9c0eae69322b31a915e262e17453795395feff8 /test
parent48ae4e0e5fa94ebb70d9e686f3c9dfc66055c012 (diff)
test: use fixtures module in test-https-truncate
PR-URL: https://github.com/nodejs/node/pull/15875 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'test')
-rw-r--r--test/parallel/test-https-truncate.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/parallel/test-https-truncate.js b/test/parallel/test-https-truncate.js
index dcefcca104e..d2a3179c0d1 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);