Skip to content
Permalink
Browse files

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 <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>
  • Loading branch information...
danbev authored and jasnell committed May 21, 2017
1 parent 414f93e commit 268a39ac2a10f3ce907b3af60457f40734a46381
Showing with 4 additions and 0 deletions.
  1. +4 −0 test/parallel/test-async-wrap-GH13045.js
@@ -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`.

0 comments on commit 268a39a

Please sign in to comment.
You can’t perform that action at this time.