Skip to content

Commit 21a8a82

Browse files
Bruce FletcherMylesBorins
Bruce Fletcher
authored andcommitted
test: add common.fixtures to https-req-split
Replaced readFileSync with fixtures.readKey. PR-URL: #15801 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Daijiro Wachi <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Rich Trott <[email protected]>
1 parent bd49ada commit 21a8a82

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/parallel/test-https-req-split.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
'use strict';
2323
const common = require('../common');
24+
const fixtures = require('../common/fixtures');
2425
if (!common.hasCrypto)
2526
common.skip('missing crypto');
2627

@@ -30,11 +31,10 @@ process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
3031
const https = require('https');
3132

3233
const tls = require('tls');
33-
const fs = require('fs');
3434

3535
const options = {
36-
key: fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`),
37-
cert: fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`)
36+
key: fixtures.readKey('agent1-key.pem'),
37+
cert: fixtures.readKey('agent1-cert.pem')
3838
};
3939

4040
// Force splitting incoming data

0 commit comments

Comments
 (0)