Skip to content

Commit

Permalink
test: use fixtures.readSync
Browse files Browse the repository at this point in the history
PR-URL: #15841
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
  • Loading branch information
szhang351 authored and joyeecheung committed Oct 13, 2017
1 parent c42cdd4 commit 84f6964
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/parallel/test-https-drain.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,13 @@ const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');

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

const options = {
key: fs.readFileSync(path.join(common.fixturesDir, 'test_key.pem')),
cert: fs.readFileSync(path.join(common.fixturesDir, 'test_cert.pem'))
key: fixtures.readSync('test_key.pem'),
cert: fixtures.readSync('test_cert.pem')
};

const bufSize = 1024 * 1024;
Expand Down

0 comments on commit 84f6964

Please sign in to comment.