From c58eaaf1a818f8d257d899d42001441cad284b79 Mon Sep 17 00:00:00 2001 From: Alvaro Cruz Date: Fri, 6 Oct 2017 09:58:34 -0700 Subject: [PATCH] test: use fixtures module PR-URL: https://github.com/nodejs/node/pull/15874 Reviewed-By: Ruben Bridgewater --- test/parallel/test-tls-getcipher.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/parallel/test-tls-getcipher.js b/test/parallel/test-tls-getcipher.js index dc3ff1bb39d5b7..27012ed49d12f5 100644 --- a/test/parallel/test-tls-getcipher.js +++ b/test/parallel/test-tls-getcipher.js @@ -6,13 +6,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 };