summaryrefslogtreecommitdiff
path: root/test/parallel
diff options
context:
space:
mode:
authorDaniel Bevenius <daniel.bevenius@gmail.com>2018-08-06 08:54:04 +0200
committerDaniel Bevenius <daniel.bevenius@gmail.com>2018-08-10 07:15:34 +0200
commit94840fdb9db2a624bb3e071c462f2a8607a995bd (patch)
tree6c07d249921d1e73557b1f276072f8fd527ae3b1 /test/parallel
parent77da6d9e8c9496269d19dab00ea6f7f0b37e2839 (diff)
downloadnode-new-94840fdb9db2a624bb3e071c462f2a8607a995bd.tar.gz
test: move require of http2 to after crypto check
Currently when configured without-ssl test-heapdump-http2.js will fail with a missing crypto message. This commit moves the require of http2 to after the crypto check. PR-URL: https://github.com/nodejs/node/pull/22148 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Diffstat (limited to 'test/parallel')
-rw-r--r--test/parallel/test-heapdump-http2.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-heapdump-http2.js b/test/parallel/test-heapdump-http2.js
index cbc1209ab0..b503951e65 100644
--- a/test/parallel/test-heapdump-http2.js
+++ b/test/parallel/test-heapdump-http2.js
@@ -2,9 +2,9 @@
'use strict';
const common = require('../common');
const { recordState } = require('../common/heap');
-const http2 = require('http2');
if (!common.hasCrypto)
common.skip('missing crypto');
+const http2 = require('http2');
{
const state = recordState();