Skip to content

Commit

Permalink
test: fix fixturesDir in test-https-truncate.js
Browse files Browse the repository at this point in the history
common.fixturesDir -> fixtures.readKey
  • Loading branch information
genewoo authored and Trott committed Oct 17, 2017
1 parent d78086b commit cca0138
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 @@ -26,12 +26,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 cca0138

Please sign in to comment.