Skip to content

Commit c29e366

Browse files
Tom Boutelljasnell
Tom Boutell
authored andcommitted
test: update test-https-server-keep-alive-timeout
PR-URL: #15805 Reviewed-By: Ryan Graham <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]>
1 parent 8a8cd40 commit c29e366

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/parallel/test-https-server-keep-alive-timeout.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
'use strict';
22

33
const common = require('../common');
4+
45
if (!common.hasCrypto)
56
common.skip('missing crypto');
67

8+
const fixtures = require('../common/fixtures');
79
const https = require('https');
810
const tls = require('tls');
9-
const fs = require('fs');
1011

1112
const tests = [];
1213

1314
const serverOptions = {
14-
key: fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`),
15-
cert: fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`)
15+
key: fixtures.readKey('agent1-key.pem'),
16+
cert: fixtures.readKey('agent1-cert.pem')
1617
};
1718

1819
function test(fn) {

0 commit comments

Comments
 (0)