Skip to content

Commit fcc150d

Browse files
danbevtargos
authored andcommitted
test: move require of http2 to after crypto check
Currently when configured without-ssl test-heapdump-http2.js will fail with a missing crypto message. This commit moves the require of http2 to after the crypto check. PR-URL: #22148 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Richard Lau <[email protected]>
1 parent d338d41 commit fcc150d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-heapdump-http2.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
'use strict';
33
const common = require('../common');
44
const { recordState } = require('../common/heap');
5-
const http2 = require('http2');
65
if (!common.hasCrypto)
76
common.skip('missing crypto');
7+
const http2 = require('http2');
88

99
{
1010
const state = recordState();

0 commit comments

Comments
 (0)