Skip to content

Commit 022c6d0

Browse files
danbevaddaleax
authored andcommitted
test: add crypto check to test-tls-wrap-econnreset
Currently, there are a few test-tls-wrap-econnreset test that fail when Node is configured --without-ssl: Error: Node.js is not compiled with openssl crypto support This commit adds crypto checks and skips these tests if no crypto support unavailable. PR-URL: #13691 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent bf22514 commit 022c6d0

4 files changed

+16
-0
lines changed

test/parallel/test-tls-wrap-econnreset-localaddress.js

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
'use strict';
22

33
const common = require('../common');
4+
if (!common.hasCrypto) {
5+
common.skip('missing crypto');
6+
return;
7+
}
48
const assert = require('assert');
59
const net = require('net');
610
const tls = require('tls');

test/parallel/test-tls-wrap-econnreset-pipe.js

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
'use strict';
22

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
const net = require('net');

test/parallel/test-tls-wrap-econnreset-socket.js

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
'use strict';
22

33
const common = require('../common');
4+
if (!common.hasCrypto) {
5+
common.skip('missing crypto');
6+
return;
7+
}
48
const assert = require('assert');
59
const net = require('net');
610
const tls = require('tls');

test/parallel/test-tls-wrap-econnreset.js

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
'use strict';
22

33
const common = require('../common');
4+
if (!common.hasCrypto) {
5+
common.skip('missing crypto');
6+
return;
7+
}
48
const assert = require('assert');
59
const net = require('net');
610
const tls = require('tls');

0 commit comments

Comments
 (0)