Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 155b947

Browse files
Trotttargos
authored andcommitted
test: replace flag with option
test-https-agent-additional-options is invoked with a command-line flag. However, there is an equivalent option that can be enabled within the code. Do that instead. PR-URL: #27830 Reviewed-By: Sam Roberts <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent b54f3e0 commit 155b947

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-https-agent-additional-options.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// Flags: --tls-min-v1.1
21
'use strict';
32
const common = require('../common');
43
if (!common.hasCrypto)
@@ -12,7 +11,8 @@ const fixtures = require('../common/fixtures');
1211
const options = {
1312
key: fixtures.readKey('agent1-key.pem'),
1413
cert: fixtures.readKey('agent1-cert.pem'),
15-
ca: fixtures.readKey('ca1-cert.pem')
14+
ca: fixtures.readKey('ca1-cert.pem'),
15+
minVersion: 'TLSv1.1',
1616
};
1717

1818
const server = https.Server(options, function(req, res) {

0 commit comments

Comments
 (0)