Skip to content

Commit

Permalink
test: replace flag with option
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Trott authored and targos committed May 28, 2019
1 parent b54f3e0 commit 155b947
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-https-agent-additional-options.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Flags: --tls-min-v1.1
'use strict';
const common = require('../common');
if (!common.hasCrypto)
Expand All @@ -12,7 +11,8 @@ const fixtures = require('../common/fixtures');
const options = {
key: fixtures.readKey('agent1-key.pem'),
cert: fixtures.readKey('agent1-cert.pem'),
ca: fixtures.readKey('ca1-cert.pem')
ca: fixtures.readKey('ca1-cert.pem'),
minVersion: 'TLSv1.1',
};

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

0 comments on commit 155b947

Please sign in to comment.