From f075951be2c79ee221950cadd9daaa8c4306fbec Mon Sep 17 00:00:00 2001 From: jsteemann Date: Thu, 9 Feb 2017 11:52:40 +0100 Subject: [PATCH] refuse to run recovery tests when compiled without enable-failure-tests --- js/client/modules/@arangodb/testing.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/js/client/modules/@arangodb/testing.js b/js/client/modules/@arangodb/testing.js index a06cd7426e..f72d9863a6 100644 --- a/js/client/modules/@arangodb/testing.js +++ b/js/client/modules/@arangodb/testing.js @@ -3339,6 +3339,15 @@ const recoveryTests = [ testFuncs.recovery = function (options) { let results = {}; + + if (!global.ARANGODB_CLIENT_VERSION(true)['failure-tests']) { + results.recovery = { + status: false, + message: "failure-tests not enabled. please recompile with -DUSE_FAILURE_TESTS=On" + }; + return results; + } + let status = true; for (let i = 0; i < recoveryTests.length; ++i) {