api: do not block in waitForLeader since the retry loop is handling this

This commit is contained in:
Frank Schroeder 2017-07-05 10:50:03 +02:00 committed by Frank Schröder
parent 26c8a9ad4c
commit f0f00a1401
1 changed files with 1 additions and 1 deletions

View File

@ -346,7 +346,7 @@ func (s *TestServer) waitForLeader() error {
var index int64 var index int64
retry.RunWith(timer, f, func(r *retry.R) { retry.RunWith(timer, f, func(r *retry.R) {
// Query the API and check the status code. // Query the API and check the status code.
url := s.url(fmt.Sprintf("/v1/catalog/nodes?index=%d&wait=2s", index)) url := s.url(fmt.Sprintf("/v1/catalog/nodes?index=%d", index))
resp, err := s.HTTPClient.Get(url) resp, err := s.HTTPClient.Get(url)
if err != nil { if err != nil {
r.Fatal("failed http get", err) r.Fatal("failed http get", err)