Skip to content
This repository has been archived by the owner on Aug 31, 2018. It is now read-only.

Commit

Permalink
test: use fixtures module
Browse files Browse the repository at this point in the history
PR-URL: nodejs/node#15874
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information
alvaro450 authored and addaleax committed Dec 7, 2017
1 parent 5b0ec00 commit e95043a
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 @@ -27,13 +27,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 e95043a

Please sign in to comment.