mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
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>
This commit is contained in:
1 parent
c58eaaf1a8
commit
3f35fc063e
1 file changed
+3
-4
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user