From 10913271bfcc1d81962e17c251e590fb5bdf8e28 Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Fri, 12 May 2017 07:40:13 +0200 Subject: [PATCH] test: hasCrypto https-server-keep-alive-timeout Currently this test will fail with the following error message when configured --without-ssl: Error: Node.js is not compiled with openssl crypto support This commit checks for crypto and skips this tests if such support is not available. PR-URL: https://github.com/nodejs/node/pull/13253 Reviewed-By: Rich Trott Reviewed-By: Luigi Pinca Reviewed-By: Benjamin Gruenbaum Reviewed-By: Colin Ihrig --- test/parallel/test-https-server-keep-alive-timeout.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/parallel/test-https-server-keep-alive-timeout.js b/test/parallel/test-https-server-keep-alive-timeout.js index 87ce973ac6..c89041489e 100644 --- a/test/parallel/test-https-server-keep-alive-timeout.js +++ b/test/parallel/test-https-server-keep-alive-timeout.js @@ -1,6 +1,10 @@ 'use strict'; const common = require('../common'); +if (!common.hasCrypto) { + common.skip('missing crypto'); + return; +} const assert = require('assert'); const https = require('https'); const tls = require('tls');