Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
test: replacing common.fixturesDir with common.fixtures module for te…
…st-tls-honorcipherorder.js
  • Loading branch information
oliverluebeck committed Oct 6, 2017
commit e137c6a0f46e6574a93ead0794a9e57e100ada03
5 changes: 3 additions & 2 deletions test/parallel/test-tls-honorcipherorder.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use strict';
const common = require('../common');
const fixtures = require('../common/fixtures');
if (!common.hasCrypto)
common.skip('missing crypto');

Expand All @@ -21,8 +22,8 @@ process.on('exit', function() {
function test(honorCipherOrder, clientCipher, expectedCipher, cb) {
const soptions = {
secureProtocol: SSL_Method,
key: fs.readFileSync(`${common.fixturesDir}/keys/agent2-key.pem`),
cert: fs.readFileSync(`${common.fixturesDir}/keys/agent2-cert.pem`),
key: fs.readFileSync(fixtures.path('/keys/agent2-key.pem')),
cert: fs.readFileSync(fixtures.path('/keys/agent2-cert.pem')),
ciphers: 'AES256-SHA256:AES128-GCM-SHA256:AES128-SHA256:' +
'ECDHE-RSA-AES128-GCM-SHA256',
honorCipherOrder: !!honorCipherOrder
Expand Down