Skip to content

Commit de198a9

Browse files
gbugaiskyMylesBorins
authored andcommittedOct 11, 2017
test: update test to use fixtures module
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]>
1 parent 9f6d535 commit de198a9

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed
 

‎test/parallel/test-http2-create-client-connect.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@
66
const common = require('../common');
77
if (!common.hasCrypto)
88
common.skip('missing crypto');
9-
const fs = require('fs');
9+
const fixtures = require('../common/fixtures');
1010
const h2 = require('http2');
11-
const path = require('path');
1211
const url = require('url');
1312
const URL = url.URL;
1413

@@ -52,8 +51,8 @@ const URL = url.URL;
5251
{
5352

5453
const options = {
55-
key: fs.readFileSync(path.join(common.fixturesDir, 'keys/agent3-key.pem')),
56-
cert: fs.readFileSync(path.join(common.fixturesDir, 'keys/agent3-cert.pem'))
54+
key: fixtures.readKey('agent3-key.pem'),
55+
cert: fixtures.readKey('agent3-cert.pem')
5756
};
5857

5958
const server = h2.createSecureServer(options);

0 commit comments

Comments
 (0)
Please sign in to comment.