From de198a9dc0a42bb65579e675f0dcefe8d3554e77 Mon Sep 17 00:00:00 2001 From: gbugaisky Date: Fri, 6 Oct 2017 10:04:29 -0700 Subject: [PATCH] test: update test to use fixtures module MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Updated the test-http2-create-client-connect tests to use the test fixures module instead of the common module. PR-URL: https://github.com/nodejs/node/pull/15955 Reviewed-By: Ruben Bridgewater Reviewed-By: Tobias Nießen Reviewed-By: Colin Ihrig Reviewed-By: Michaël Zasso --- test/parallel/test-http2-create-client-connect.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/parallel/test-http2-create-client-connect.js b/test/parallel/test-http2-create-client-connect.js index 2c40d7c653674a..73935d286bba57 100644 --- a/test/parallel/test-http2-create-client-connect.js +++ b/test/parallel/test-http2-create-client-connect.js @@ -6,9 +6,8 @@ const common = require('../common'); if (!common.hasCrypto) common.skip('missing crypto'); -const fs = require('fs'); +const fixtures = require('../common/fixtures'); const h2 = require('http2'); -const path = require('path'); const url = require('url'); const URL = url.URL; @@ -52,8 +51,8 @@ const URL = url.URL; { const options = { - key: fs.readFileSync(path.join(common.fixturesDir, 'keys/agent3-key.pem')), - cert: fs.readFileSync(path.join(common.fixturesDir, 'keys/agent3-cert.pem')) + key: fixtures.readKey('agent3-key.pem'), + cert: fixtures.readKey('agent3-cert.pem') }; const server = h2.createSecureServer(options);