Skip to content
Browse files

test: add hasCrypto to tls-lookup

Currently when building --without-ssl this test will report the
following error:
    throw new Error('Node.js is not compiled with openssl crypto

This commit adds a check for crypto and skips this test if node was
built without ssl support.

PR-URL: #13047
Reviewed-By: Refael Ackermann <>
Reviewed-By: Rich Trott <>
Reviewed-By: David Cai <>
Reviewed-By: Luigi Pinca <>
Reviewed-By: Colin Ihrig <>
  • Loading branch information...
danbev committed May 15, 2017
1 parent 0dd8b9a commit 6933419cb919e42b03ef980e762f19e70d3d0c29
Showing with 4 additions and 0 deletions.
  1. +4 −0 test/parallel/test-tls-lookup.js
@@ -1,5 +1,9 @@
'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 6933419

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