summaryrefslogtreecommitdiff
path: root/test/parallel/test-http2-client-write-empty-string.js
diff options
context:
space:
mode:
authorDaniel Bevenius <daniel.bevenius@gmail.com>2018-03-03 19:05:12 +0100
committerDaniel Bevenius <daniel.bevenius@gmail.com>2018-03-06 13:10:00 +0100
commitacac0f852a02c2b129adbc51e0bd8bd482d791af (patch)
tree4757f2ec4e6f2990390e271086c0a8e3e0871f5b /test/parallel/test-http2-client-write-empty-string.js
parent0c7e7d49d41cdb80b4fd88b400d2c699462965e5 (diff)
downloadnode-new-acac0f852a02c2b129adbc51e0bd8bd482d791af.tar.gz
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: https://github.com/nodejs/node/pull/19111 Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Jon Moss <me@jonathanmoss.me>
Diffstat (limited to 'test/parallel/test-http2-client-write-empty-string.js')
-rw-r--r--test/parallel/test-http2-client-write-empty-string.js3
1 files changed, 2 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 c10698d417..8b8cb3d640 100644
--- a/test/parallel/test-http2-client-write-empty-string.js
+++ b/test/parallel/test-http2-client-write-empty-string.js
@@ -1,12 +1,13 @@
'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 [
[ '' ],
[ '', '' ]