mirror of
https://github.com/nodejs/node.git
synced 2026-11-30 11:45:32 -05:00
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: https://github.com/nodejs/node/pull/13141 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
1 parent
3774c99f66
commit
485be99e68
1 file changed
+4
@@ -1,5 +1,9 @@
|
||||
'use strict';
|
||||
const common = require('../common');
|
||||
if (!common.hasCrypto) {
|
||||
common.skip('missing crypto');
|
||||
return;
|
||||
}
|
||||
|
||||
// Refs: https://github.com/nodejs/node/issues/13045
|
||||
// An HTTP Agent reuses a TLSSocket, and makes a failed call to `asyncReset`.
|
||||
|
||||
Reference in new issue
Block a user