Skip to content

Commit

Permalink
Merge pull request #85 from arangodb/bug-fix/version-check-fix
Browse files Browse the repository at this point in the history
fix - /api/version will answer on all servers (not leader only)
  • Loading branch information
ObiWahn authored Mar 28, 2018
2 parents e8d594d + 983a072 commit 3f35016
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 3f35016

Please sign in to comment.