From a8e7fa4e75d733d188ceb3a1576c2a9fe0d63931 Mon Sep 17 00:00:00 2001 From: Ivan Etchart Date: Fri, 6 Oct 2017 10:08:09 -0700 Subject: [PATCH] test: replace fixturesDir with fixtures module `test/parallel/test-tls-ecdh.js` was loading fixture keys using `common.fixturesDir`. Now it's using `fixtures.readKey` instead. PR-URL: https://github.com/nodejs/node/pull/15893 Reviewed-By: Daijiro Wachi Reviewed-By: Ruben Bridgewater --- test/parallel/test-tls-ecdh.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/parallel/test-tls-ecdh.js b/test/parallel/test-tls-ecdh.js index 32df9c1d3a8544..ef9e9df169b355 100644 --- a/test/parallel/test-tls-ecdh.js +++ b/test/parallel/test-tls-ecdh.js @@ -1,5 +1,6 @@ 'use strict'; const common = require('../common'); +const fixtures = require('../common/fixtures'); if (!common.hasCrypto) common.skip('missing crypto'); @@ -11,11 +12,10 @@ const assert = require('assert'); const tls = require('tls'); const exec = require('child_process').exec; -const fs = require('fs'); 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: '-ALL:ECDHE-RSA-AES128-SHA256', ecdhCurve: 'prime256v1' };