Skip to content

Commit cca0138

Browse files
genewooTrott
authored andcommitted
test: fix fixturesDir in test-https-truncate.js
common.fixturesDir -> fixtures.readKey
1 parent d78086b commit cca0138

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
@@ -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)