From f0ad3bb69558b999a52481c8fd5dcf11f8d2fea4 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 87ce973ac6d09a..c89041489e0aef 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');