Skip to content

Commit 3f35fc0

Browse files
genewooMylesBorins
authored andcommitted
test: use fixtures module in test-https-truncate
PR-URL: #15875 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Yuta Hiroto <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent c58eaaf commit 3f35fc0

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/parallel/test-https-truncate.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@ if (!common.hasCrypto)
55
common.skip('missing crypto');
66

77
const assert = require('assert');
8+
const fixtures = require('../common/fixtures');
89
const https = require('https');
910

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`);
11+
const key = fixtures.readKey('agent1-key.pem');
12+
const cert = fixtures.readKey('agent1-cert.pem');
1413

1514
// number of bytes discovered empirically to trigger the bug
1615
const data = Buffer.alloc(1024 * 32 + 1);

0 commit comments

Comments
 (0)