diff options
author | Daniel Bevenius <daniel.bevenius@gmail.com> | 2018-04-10 07:37:04 +0200 |
---|---|---|
committer | Daniel Bevenius <daniel.bevenius@gmail.com> | 2018-04-11 08:23:08 +0200 |
commit | 4ac7753e4d6de2b52e4404391d6705ee14038663 (patch) | |
tree | bc8dba687a516748bae94927fcbfdefa4d3be66e /test | |
parent | 398968297ae387714431d3e1c6ff0f0cb24807d8 (diff) | |
download | android-node-v8-4ac7753e4d6de2b52e4404391d6705ee14038663.tar.gz android-node-v8-4ac7753e4d6de2b52e4404391d6705ee14038663.tar.bz2 android-node-v8-4ac7753e4d6de2b52e4404391d6705ee14038663.zip |
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: https://github.com/nodejs/node/pull/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>
Diffstat (limited to 'test')
-rw-r--r-- | test/parallel/test-http2-client-write-empty-string.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-http2-client-write-empty-string.js b/test/parallel/test-http2-client-write-empty-string.js index dc0f0eea2c..de46507fb1 100644 --- a/test/parallel/test-http2-client-write-empty-string.js +++ b/test/parallel/test-http2-client-write-empty-string.js @@ -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 [ [ '' ], |