Skip to content

Commit b98004b

Browse files
committed
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 <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent e2f151f commit b98004b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/parallel/test-tls-legacy-deprecated.js

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
// Flags: --no-warnings
22
'use strict';
33
const common = require('../common');
4+
if (!common.hasCrypto) {
5+
common.skip('missing crypto');
6+
return;
7+
}
48
const assert = require('assert');
59
const tls = require('tls');
610

0 commit comments

Comments
 (0)