Skip to content

Commit b1cbbbc

Browse files
danbevrvagg
authored andcommitted
test: move require of https to after crypto check
Currently when configured without-ssl test-request-arguments.js will fail with a missing crypto message. This commit moves the require of https to after the crypto check. PR-URL: #22148 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
1 parent a6ab19a commit b1cbbbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-https-request-arguments.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
'use strict';
22
const common = require('../common');
33
const assert = require('assert');
4-
const https = require('https');
54
const fixtures = require('../common/fixtures');
65

76
if (!common.hasCrypto)
87
common.skip('missing crypto');
8+
const https = require('https');
99

1010
const options = {
1111
key: fixtures.readKey('agent1-key.pem'),

0 commit comments

Comments
 (0)