We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c58eaaf commit 3f35fc0Copy full SHA for 3f35fc0
test/parallel/test-https-truncate.js
@@ -5,12 +5,11 @@ if (!common.hasCrypto)
5
common.skip('missing crypto');
6
7
const assert = require('assert');
8
+const fixtures = require('../common/fixtures');
9
const https = require('https');
10
-const fs = require('fs');
11
-
12
-const key = fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`);
13
-const cert = fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`);
+const key = fixtures.readKey('agent1-key.pem');
+const cert = fixtures.readKey('agent1-cert.pem');
14
15
// number of bytes discovered empirically to trigger the bug
16
const data = Buffer.alloc(1024 * 32 + 1);
0 commit comments