Skip to content

Commit 7a1920d

Browse files
danbevMylesBorins
authored andcommitted
test: add hasCrypto check to tls-socket-close
Currently test-tls-socket-close 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: #11911 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Yuta Hiroto <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 8ed18a1 commit 7a1920d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎test/parallel/test-tls-socket-close.js‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
'use strict';
22
constcommon=require('../common');
3+
if(!common.hasCrypto){
4+
common.skip('missing crypto');
5+
return;
6+
}
37
constassert=require('assert');
48

59
consttls=require('tls');

0 commit comments

Comments
(0)