From 983a0722b022f32df33b48868dee5b8242c56623 Mon Sep 17 00:00:00 2001 From: Jan Christoph Uhde Date: Wed, 28 Mar 2018 10:36:48 +0200 Subject: [PATCH] fix - /api/version will answer on all servers (not leader only) --- tests/test_util.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_util.go b/tests/test_util.go index 345a61a22..2afc3366a 100644 --- a/tests/test_util.go +++ b/tests/test_util.go @@ -379,8 +379,10 @@ func waitUntilArangoDeploymentHealthy(deployment *api.ArangoDeployment, DBClient } } - if goodResults != 1 || noLeaderResults != *deployment.Spec.Single.Count-1 { - return maskAny(fmt.Errorf("Wrong number of results: good %d - noleader %d", goodResults, noLeaderResults)) + expectedGood := *deployment.Spec.Single.Count + expectedNoLeader := 0 + if goodResults != expectedGood || noLeaderResults != expectedNoLeader { + return maskAny(fmt.Errorf("Wrong number of results: good %d (expected: %d)- noleader %d (expected %d)", goodResults, expectedGood, noLeaderResults, expectedNoLeader)) } } default: