Skip to content

Commit 268a39a

Browse files
danbevjasnell
authored andcommittedMay 23, 2017
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 414f93e commit 268a39a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

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

+4
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)
Please sign in to comment.