From 03ea6b929b51b295615141dde2dcf7abd1430647 Mon Sep 17 00:00:00 2001 From: Jan Date: Fri, 24 Aug 2018 10:45:31 +0200 Subject: [PATCH] fix "auto" test (#6224) --- js/client/modules/@arangodb/testing.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/client/modules/@arangodb/testing.js b/js/client/modules/@arangodb/testing.js index e16b1e31e9..d8c6a712ce 100644 --- a/js/client/modules/@arangodb/testing.js +++ b/js/client/modules/@arangodb/testing.js @@ -611,6 +611,7 @@ function iterateTests(cases, options, jsonReply) { // grrr...normalize structure delete result.status; delete result.failed; + delete result.crashed; let status = Object.values(result).every(testCase => testCase.status === true); let failed = Object.values(result).reduce((prev, testCase) => prev + !testCase.status, 0); @@ -650,6 +651,7 @@ function iterateTests(cases, options, jsonReply) { print(RED + require('internal').inspect(results) + RESET); } } + return results; } @@ -685,6 +687,7 @@ function unitTest (cases, options) { delete options.jsonReply; let results = iterateTests(cases, options, jsonReply); + if (jsonReply === true) { return results; } else {