Permalink
Browse files

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: #13253
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information...
danbev committed May 12, 2017
1 parent c58cea5 commit 10913271bfcc1d81962e17c251e590fb5bdf8e28
Showing with 4 additions and 0 deletions.
  1. +4 −0 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');

0 comments on commit 1091327

Please sign in to comment.