Browse Source

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 <rtrott@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
v6
Daniel Bevenius 8 years ago
parent
commit
10913271bf
  1. 4
      test/parallel/test-https-server-keep-alive-timeout.js

4
test/parallel/test-https-server-keep-alive-timeout.js

@ -1,6 +1,10 @@
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');
if (!common.hasCrypto) {
common.skip('missing crypto');
return;
}
const assert = require('assert'); const assert = require('assert');
const https = require('https'); const https = require('https');
const tls = require('tls'); const tls = require('tls');

Loading…
Cancel
Save