From 723c4edc1e928381c314ce3ddf4732b314789011 Mon Sep 17 00:00:00 2001
From: Daniel Bevenius <daniel.bevenius@gmail.com>
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.
---
 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');