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 <anna@addaleax.net>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
szhang351 authored and targos committed Oct 18, 2017
1 parent 1469eff commit 562d445
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 562d445

Please sign in to comment.