Skip to content

Commit

Permalink
test: use fixtures module in test-https-truncate
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
genewoo authored and MylesBorins committed Nov 28, 2017
1 parent c58eaaf commit 3f35fc0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/parallel/test-https-truncate.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@ if (!common.hasCrypto)
common.skip('missing crypto');

const assert = require('assert');
const fixtures = require('../common/fixtures');
const https = require('https');

const fs = require('fs');

const key = fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`);
const cert = fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`);
const key = fixtures.readKey('agent1-key.pem');
const cert = fixtures.readKey('agent1-cert.pem');

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

0 comments on commit 3f35fc0

Please sign in to comment.