Skip to content

Commit e14585f

Browse files
danbevjasnell
authored andcommitted
test: move require('http2') after crypto check
This test currently fails when configured --without-ssl: Error [ERR_NO_CRYPTO]: Node.js is not compiled with OpenSSL crypto support This commit moves the require of http2 to come after the crypto check to avoid the error. PR-URL: #19907 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 4162115 commit e14585f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
'use strict';
22

33
const assert = require('assert');
4-
const http2 = require('http2');
54
const common = require('../common');
65
if (!common.hasCrypto)
76
common.skip('missing crypto');
87

8+
const http2 = require('http2');
99

1010
for (const chunkSequence of [
1111
[ '' ],

0 commit comments

Comments
 (0)