Skip to content

Commit ee653ec

Browse files
danbevMylesBorins
authored andcommitted
test: move require http2 to after crypto check
Currently test-http2-client-write-empty-string.js will throw "Error [ERR_NO_CRYPTO]: Node.js is not compiled with OpenSSL crypto support" when configured --without-ssl. This commit moves the require of http2 to after the crypto check to avoid this error. PR-URL: #19111 Reviewed-By: Anatoli Papirovski <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Jon Moss <[email protected]>
1 parent 2f17c52 commit ee653ec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/parallel/test-http2-client-write-empty-string.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
'use strict';
22

33
const assert = require('assert');
4-
const http2 = require('http2');
54

65
const common = require('../common');
76
if (!common.hasCrypto)
87
common.skip('missing crypto');
98

9+
const http2 = require('http2');
10+
1011
for (const chunkSequence of [
1112
[ '' ],
1213
[ '', '' ]

0 commit comments

Comments
 (0)