Skip to content

Commit 5ca1c7a

Browse files
gbugaiskyjoyeecheung
authored andcommitted
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 e012229 commit 5ca1c7a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@
55
const common = require('../common');
66
if (!common.hasCrypto)
77
common.skip('missing crypto');
8-
const fs = require('fs');
8+
const fixtures = require('../common/fixtures');
99
const h2 = require('http2');
10-
const path = require('path');
1110
const url = require('url');
1211
const URL = url.URL;
1312

@@ -51,8 +50,8 @@ const URL = url.URL;
5150
{
5251

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

5857
const server = h2.createSecureServer(options);

0 commit comments

Comments
 (0)