We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d78086b commit cca0138Copy full SHA for cca0138
test/parallel/test-https-truncate.js
@@ -26,12 +26,11 @@ if (!common.hasCrypto)
26
common.skip('missing crypto');
27
28
const assert = require('assert');
29
+const fixtures = require('../common/fixtures');
30
const https = require('https');
31
-const fs = require('fs');
32
-
33
-const key = fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`);
34
-const cert = fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`);
+const key = fixtures.readKey('agent1-key.pem');
+const cert = fixtures.readKey('agent1-cert.pem');
35
36
// number of bytes discovered empirically to trigger the bug
37
const data = Buffer.alloc(1024 * 32 + 1);
0 commit comments