Skip to content

Commit 485be99

Browse files
committed
test: add hasCrypto check to async-wrap-GH13045
This test currently fails if node was configured --without-ssl. This commit adds crypto check and skips this test if crypto support is not available. PR-URL: #13141 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Santiago Gimeno <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 3774c99 commit 485be99

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/parallel/test-async-wrap-GH13045.js

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

48
// Refs: https://github.com/nodejs/node/issues/13045
59
// An HTTP Agent reuses a TLSSocket, and makes a failed call to `asyncReset`.

0 commit comments

Comments
 (0)