From 2fce34268ef721ce9fe2d1ed74950bbaa0e4c7c8 Mon Sep 17 00:00:00 2001 From: Oliver Luebeck Date: Fri, 6 Oct 2017 10:13:08 -0700 Subject: [PATCH] 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 Reviewed-By: James M Snell Reviewed-By: Colin Ihrig --- test/parallel/test-tls-honorcipherorder.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/parallel/test-tls-honorcipherorder.js b/test/parallel/test-tls-honorcipherorder.js index a9d35a01baca51..60029bb4bd64b8 100644 --- a/test/parallel/test-tls-honorcipherorder.js +++ b/test/parallel/test-tls-honorcipherorder.js @@ -1,11 +1,11 @@ 'use strict'; const common = require('../common'); +const fixtures = require('../common/fixtures'); if (!common.hasCrypto) common.skip('missing crypto'); const assert = require('assert'); const tls = require('tls'); -const fs = require('fs'); let nconns = 0; @@ -21,8 +21,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: fixtures.readKey('agent2-key.pem'), + cert: fixtures.readKey('agent2-cert.pem'), ciphers: 'AES256-SHA256:AES128-GCM-SHA256:AES128-SHA256:' + 'ECDHE-RSA-AES128-GCM-SHA256', honorCipherOrder: !!honorCipherOrder