Skip to content

Commit a87b202

Browse files
genewooMylesBorins
authored andcommitted
test: use fixtures module in test-https-truncate
PR-URL: #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>
1 parent 48ae4e0 commit a87b202

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)