From 485be99e684f5e296c2aba28a401d5ef42fc3cb4 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. PR-URL: https://github.com/nodejs/node/pull/13141 Reviewed-By: Colin Ihrig Reviewed-By: Santiago Gimeno Reviewed-By: Luigi Pinca Reviewed-By: James M Snell --- 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`.