Skip to content

Commit

Permalink
test: use fixtures module
Browse files Browse the repository at this point in the history
PR-URL: #15872
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information
LancePTB authored and MylesBorins committed Nov 28, 2017
1 parent 339bdca commit 48e1320
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/parallel/test-tls-inception.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
'use strict';
const common = require('../common');
const fixtures = require('../common/fixtures');

if (!common.hasCrypto)
common.skip('missing crypto');

const assert = require('assert');
const tls = require('tls');

const fs = require('fs');
const path = require('path');
const net = require('net');

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 body = 'A'.repeat(40000);
Expand Down

0 comments on commit 48e1320

Please sign in to comment.