From c68fbff6c19e132d35889cb65724f68e30ae848e Mon Sep 17 00:00:00 2001 From: Willi Goesgens Date: Thu, 22 Jan 2015 12:03:52 +0100 Subject: [PATCH] Don't spinn in tight loops while waiting for valgrind to shut down. --- js/server/modules/org/arangodb/testing.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/server/modules/org/arangodb/testing.js b/js/server/modules/org/arangodb/testing.js index ad0f3c8557..66b25278cc 100644 --- a/js/server/modules/org/arangodb/testing.js +++ b/js/server/modules/org/arangodb/testing.js @@ -466,6 +466,7 @@ function shutdownInstance (instanceInfo, options) { if (instanceInfo.exitStatus.status === "RUNNING") { count ++; if (typeof(options.valgrind) === 'string') { + wait(1); continue; } if (count % 10 ===0) {