From 25b21d2bca7fbeea495283dc6eb00529df577fdf Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Sun, 21 May 2017 19:26:37 +0200 Subject: [PATCH] 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. --- test/parallel/test-async-wrap-GH13045.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/parallel/test-async-wrap-GH13045.js b/test/parallel/test-async-wrap-GH13045.js index 9fab1ee2ae1b0f..41c6f0cd19eb35 100644 --- a/test/parallel/test-async-wrap-GH13045.js +++ b/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`.