Skip to content

Commit

Permalink
test: move require('http2') after crypto check
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
danbev authored and jasnell committed Apr 16, 2018
1 parent 4162115 commit e14585f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-http2-client-write-empty-string.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
'use strict';

const assert = require('assert');
const http2 = require('http2');
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');

const http2 = require('http2');

for (const chunkSequence of [
[ '' ],
Expand Down

0 comments on commit e14585f

Please sign in to comment.