Skip to content

Commit c35a3e0

Browse files
genewooBridgeAR
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 b096533 commit c35a3e0

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/parallel/test-https-truncate.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,11 @@ if (!common.hasCrypto)
2626
common.skip('missing crypto');
2727

2828
const assert = require('assert');
29+
const fixtures = require('../common/fixtures');
2930
const https = require('https');
3031

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`);
32+
const key = fixtures.readKey('agent1-key.pem');
33+
const cert = fixtures.readKey('agent1-cert.pem');
3534

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

0 commit comments

Comments
 (0)