From 026e970bc944cca2a07644753e2fd44b4ab4741f Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Tue, 10 Apr 2018 07:37:04 +0200 Subject: [PATCH] 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. --- test/parallel/test-http2-client-write-empty-string.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-http2-client-write-empty-string.js b/test/parallel/test-http2-client-write-empty-string.js index dc0f0eea2c55e5..de46507fb17137 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 [ [ '' ],