Skip to content
Browse files

test: add hasCrypto check to tls-legacy-deprecated

Currently test-tls-legacy-deprecated will fail if node
was built using --without-ssl. This commit adds a check to
verify is crypto support exists and if not skip this test.

PR-URL: #11747
Reviewed-By: James M Snell <>
Reviewed-By: Colin Ihrig <>
  • Loading branch information...
danbev committed Mar 8, 2017
1 parent e2f151f commit b98004b79cc5c55922ecd03a4128ba0dfdd07f48
Showing with 4 additions and 0 deletions.
  1. +4 −0 test/parallel/test-tls-legacy-deprecated.js
@@ -1,6 +1,10 @@
// Flags: --no-warnings
'use strict';
const common = require('../common');
if (!common.hasCrypto) {
common.skip('missing crypto');
const assert = require('assert');
const tls = require('tls');

0 comments on commit b98004b

Please sign in to comment.
You can’t perform that action at this time.