test: replace fixturesDir with common.fixtures
In test-tls-honorcipherorder.js, use common.fixtures instead of common.fixturesDir. PR-URL: https://github.com/nodejs/node/pull/15907 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
parent
067d1f16de
commit
1d7fbabaef
@ -1,11 +1,11 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
const common = require('../common');
|
const common = require('../common');
|
||||||
|
const fixtures = require('../common/fixtures');
|
||||||
if (!common.hasCrypto)
|
if (!common.hasCrypto)
|
||||||
common.skip('missing crypto');
|
common.skip('missing crypto');
|
||||||
|
|
||||||
const assert = require('assert');
|
const assert = require('assert');
|
||||||
const tls = require('tls');
|
const tls = require('tls');
|
||||||
const fs = require('fs');
|
|
||||||
|
|
||||||
let nconns = 0;
|
let nconns = 0;
|
||||||
|
|
||||||
@ -21,8 +21,8 @@ process.on('exit', function() {
|
|||||||
function test(honorCipherOrder, clientCipher, expectedCipher, cb) {
|
function test(honorCipherOrder, clientCipher, expectedCipher, cb) {
|
||||||
const soptions = {
|
const soptions = {
|
||||||
secureProtocol: SSL_Method,
|
secureProtocol: SSL_Method,
|
||||||
key: fs.readFileSync(`${common.fixturesDir}/keys/agent2-key.pem`),
|
key: fixtures.readKey('agent2-key.pem'),
|
||||||
cert: fs.readFileSync(`${common.fixturesDir}/keys/agent2-cert.pem`),
|
cert: fixtures.readKey('agent2-cert.pem'),
|
||||||
ciphers: 'AES256-SHA256:AES128-GCM-SHA256:AES128-SHA256:' +
|
ciphers: 'AES256-SHA256:AES128-GCM-SHA256:AES128-SHA256:' +
|
||||||
'ECDHE-RSA-AES128-GCM-SHA256',
|
'ECDHE-RSA-AES128-GCM-SHA256',
|
||||||
honorCipherOrder: !!honorCipherOrder
|
honorCipherOrder: !!honorCipherOrder
|
||||||
|
Loading…
x
Reference in New Issue
Block a user