From f0f00a14010479b0a9303601d0dfccf865ae2c1d Mon Sep 17 00:00:00 2001 From: Frank Schroeder Date: Wed, 5 Jul 2017 10:50:03 +0200 Subject: [PATCH] api: do not block in waitForLeader since the retry loop is handling this --- testutil/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testutil/server.go b/testutil/server.go index 4b785d036..3cb959a47 100644 --- a/testutil/server.go +++ b/testutil/server.go @@ -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)