From 91061e6dc467da229537ef0d63c5dec5df61495b 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. --- test/sequential/test-benchmark-http2.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/sequential/test-benchmark-http2.js b/test/sequential/test-benchmark-http2.js index 0abe490973b38d..1668a7b87fe643 100644 --- a/test/sequential/test-benchmark-http2.js +++ b/test/sequential/test-benchmark-http2.js @@ -1,6 +1,8 @@ 'use strict'; const common = require('../common'); +if (!common.hasCrypto) + common.skip('missing crypto'); if (!common.enoughTestMem) common.skip('Insufficient memory for HTTP/2 benchmark test');