From 8a3836ec725984b8b72f1661d6d70d478e298adb 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-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');