From dddb466f592e2ccfe15fe2d2cf1280ce4e097dd9 Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Mon, 5 Nov 2018 07:28:34 +0100 Subject: [PATCH] test: add crypto check to test-benchmark-http2 Currently, this test will fail when configured --without-ssl. This commit adds a crypto check to have this test skipped when configured without crypto support. PR-URL: https://github.com/nodejs/node/pull/24096 Reviewed-By: Richard Lau Reviewed-By: Colin Ihrig Reviewed-By: Luigi Pinca Reviewed-By: Rich Trott Reviewed-By: Joyee Cheung --- test/sequential/test-benchmark-tls.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/sequential/test-benchmark-tls.js b/test/sequential/test-benchmark-tls.js index 40c14af8302bdb..7d2f80082684dd 100644 --- a/test/sequential/test-benchmark-tls.js +++ b/test/sequential/test-benchmark-tls.js @@ -1,6 +1,8 @@ 'use strict'; const common = require('../common'); +if (!common.hasCrypto) + common.skip('missing crypto'); if (!common.hasCrypto) common.skip('missing crypto');