Skip to content
Browse files

test: add hasCrypto to tls-wrap-event-emmiter

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: #13041
Reviewed-By: Colin Ihrig <>
Reviewed-By: Luigi Pinca <>
  • Loading branch information...
danbev committed May 15, 2017
1 parent ad7b98b commit 5debcceafcdd73035d840f53deb931925691a3ab
Showing with 5 additions and 1 deletion.
  1. +5 −1 test/parallel/test-tls-wrap-event-emmiter.js
@@ -5,7 +5,11 @@
* Test checks if we get exception instead of runtime error

const common = require('../common');
if (!common.hasCrypto) {
common.skip('missing crypto');
const assert = require('assert');

const TlsSocket = require('tls').TLSSocket;

0 comments on commit 5debcce

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