test: update test-https-server-keep-alive-timeout
PR-URL: https://github.com/nodejs/node/pull/15805 Reviewed-By: Ryan Graham <r.m.graham@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
This commit is contained in:
parent
8a8cd40b27
commit
c29e366109
@ -1,18 +1,19 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
const common = require('../common');
|
const common = require('../common');
|
||||||
|
|
||||||
if (!common.hasCrypto)
|
if (!common.hasCrypto)
|
||||||
common.skip('missing crypto');
|
common.skip('missing crypto');
|
||||||
|
|
||||||
|
const fixtures = require('../common/fixtures');
|
||||||
const https = require('https');
|
const https = require('https');
|
||||||
const tls = require('tls');
|
const tls = require('tls');
|
||||||
const fs = require('fs');
|
|
||||||
|
|
||||||
const tests = [];
|
const tests = [];
|
||||||
|
|
||||||
const serverOptions = {
|
const serverOptions = {
|
||||||
key: fs.readFileSync(`${common.fixturesDir}/keys/agent1-key.pem`),
|
key: fixtures.readKey('agent1-key.pem'),
|
||||||
cert: fs.readFileSync(`${common.fixturesDir}/keys/agent1-cert.pem`)
|
cert: fixtures.readKey('agent1-cert.pem')
|
||||||
};
|
};
|
||||||
|
|
||||||
function test(fn) {
|
function test(fn) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user