mirror of https://github.com/status-im/consul.git
api: do not block in waitForLeader since the retry loop is handling this
This commit is contained in:
parent
ebe032a75c
commit
cd0b0b35c9
|
@ -346,7 +346,7 @@ func (s *TestServer) waitForLeader() error {
|
|||
var index int64
|
||||
retry.RunWith(timer, f, func(r *retry.R) {
|
||||
// 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)
|
||||
if err != nil {
|
||||
r.Fatal("failed http get", err)
|
||||
|
|
Loading…
Reference in New Issue