From e49893cef83814e9db87a77cab474a529833dbdd Mon Sep 17 00:00:00 2001 From: Max Neunhoeffer Date: Wed, 20 Apr 2016 17:24:19 +0200 Subject: [PATCH] Prepare testing of synchronous replication. --- js/client/modules/@arangodb/testing.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/js/client/modules/@arangodb/testing.js b/js/client/modules/@arangodb/testing.js index 7d2aad07b9..c55939ace4 100644 --- a/js/client/modules/@arangodb/testing.js +++ b/js/client/modules/@arangodb/testing.js @@ -605,6 +605,11 @@ function runThere(options, instanceInfo, file) { 'return runTest(' + JSON.stringify(file) + ', true);'; } + if (options.propagateInstanceInfo) { + testCode = 'global.instanceInfo = ' + JSON.stringify(instanceInfo) + + ';\n' + testCode; + } + let httpOptions = makeAuthorizationHeaders(options); httpOptions.method = "POST"; httpOptions.timeout = 3600; @@ -3218,6 +3223,7 @@ testFuncs.server_http = function(options) { testFuncs.shell_server = function(options) { findTests(); + options.propagateInstanceInfo = true; return performTests(options, testsCases.server, 'shell_server'); };