Skip to content

Commit

Permalink
test: use fixtures module
Browse files Browse the repository at this point in the history
PR-URL: #15874
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information
alvaro450 authored and MylesBorins committed Nov 28, 2017
1 parent 48e1320 commit c58eaaf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/parallel/test-tls-getcipher.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@ if (!common.hasCrypto)

const assert = require('assert');
const tls = require('tls');
// import fixtures directly from its module
const fixtures = require('../common/fixtures');

const fs = require('fs');
const cipher_list = ['AES128-SHA256', 'AES256-SHA256'];
const cipher_version_pattern = /TLS|SSL/;
const options = {
key: fs.readFileSync(`${common.fixturesDir}/keys/agent2-key.pem`),
cert: fs.readFileSync(`${common.fixturesDir}/keys/agent2-cert.pem`),
key: fixtures.readKey('agent2-key.pem'),
cert: fixtures.readKey('agent2-cert.pem'),
ciphers: cipher_list.join(':'),
honorCipherOrder: true
};
Expand Down

0 comments on commit c58eaaf

Please sign in to comment.