Skip to content

Commit 4fd5bf5

Browse files
oliverluebeckMylesBorins
authored andcommitted
test: replace fixturesDir with common.fixtures
In test-tls-honorcipherorder.js, use common.fixtures instead of common.fixturesDir. PR-URL: #15907 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent e3e234e commit 4fd5bf5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/parallel/test-tls-honorcipherorder.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
'use strict';
22
const common = require('../common');
3+
const fixtures = require('../common/fixtures');
34
if (!common.hasCrypto)
45
common.skip('missing crypto');
56

67
const assert = require('assert');
78
const tls = require('tls');
8-
const fs = require('fs');
99

1010
let nconns = 0;
1111

@@ -21,8 +21,8 @@ process.on('exit', function() {
2121
function test(honorCipherOrder, clientCipher, expectedCipher, cb) {
2222
const soptions = {
2323
secureProtocol: SSL_Method,
24-
key: fs.readFileSync(`${common.fixturesDir}/keys/agent2-key.pem`),
25-
cert: fs.readFileSync(`${common.fixturesDir}/keys/agent2-cert.pem`),
24+
key: fixtures.readKey('agent2-key.pem'),
25+
cert: fixtures.readKey('agent2-cert.pem'),
2626
ciphers: 'AES256-SHA256:AES128-GCM-SHA256:AES128-SHA256:' +
2727
'ECDHE-RSA-AES128-GCM-SHA256',
2828
honorCipherOrder: !!honorCipherOrder

0 commit comments

Comments
 (0)