Skip to content

Commit 6a44442

Browse files
Robin LungwitzMylesBorins
authored andcommitted
test: use fixtures.readKey
Replace the common.fixturesDir by fixtures.readKey in http2 subsystem test 'server startup'. PR-URL: #15892 Reviewed-By: Sam Roberts <[email protected]> Reviewed-By: Daijiro Wachi <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent f7ab126 commit 6a44442

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

test/parallel/test-http2-server-startup.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,19 @@
66
// other than start listening.
77

88
const common = require('../common');
9+
const commonFixtures = require('../common/fixtures');
910

1011
if (!common.hasCrypto)
1112
common.skip('missing crypto');
1213

1314
const assert = require('assert');
1415
const http2 = require('http2');
15-
const path = require('path');
1616
const tls = require('tls');
1717
const net = require('net');
18-
const fs = require('fs');
1918

2019
const options = {
21-
key: fs.readFileSync(
22-
path.resolve(common.fixturesDir, 'keys/agent2-key.pem')),
23-
cert: fs.readFileSync(
24-
path.resolve(common.fixturesDir, 'keys/agent2-cert.pem'))
20+
key: commonFixtures.readKey('agent2-key.pem'),
21+
cert: commonFixtures.readKey('agent2-cert.pem')
2522
};
2623

2724
// There should not be any throws

0 commit comments

Comments
 (0)