Skip to content

Commit 5debcce

Browse files
committed
test: add hasCrypto to tls-wrap-event-emmiter
Currently when building --without-ssl this test will report the following error: internal/util.js:82 throw new Error('Node.js is not compiled with openssl crypto support'); 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 <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent ad7b98b commit 5debcce

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/parallel/test-tls-wrap-event-emmiter.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@
55
* Test checks if we get exception instead of runtime error
66
*/
77

8-
require('../common');
8+
const common = require('../common');
9+
if (!common.hasCrypto) {
10+
common.skip('missing crypto');
11+
return;
12+
}
913
const assert = require('assert');
1014

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

0 commit comments

Comments
 (0)