Skip to content

Commit

Permalink
test: update test to use fixtures module
Browse files Browse the repository at this point in the history
Updated the test-http2-create-client-connect tests to
use the test fixures module instead of the common
module.

PR-URL: #15955
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
  • Loading branch information
gbugaisky authored and joyeecheung committed Oct 8, 2017
1 parent e012229 commit 5ca1c7a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/parallel/test-http2-create-client-connect.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,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;

Expand Down Expand Up @@ -51,8 +50,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);
Expand Down

0 comments on commit 5ca1c7a

Please sign in to comment.