mirror of https://github.com/status-im/consul.git
Merge pull request #2715 from hashicorp/slackpad-patch-1
Drop testutil wait to 2 seconds.
This commit is contained in:
commit
3c26515607
|
@ -298,7 +298,7 @@ func (s *TestServer) waitForLeader() {
|
|||
var index int64
|
||||
WaitForResult(func() (bool, error) {
|
||||
// Query the API and check the status code.
|
||||
url := s.url(fmt.Sprintf("/v1/catalog/nodes?index=%d&wait=10s", index))
|
||||
url := s.url(fmt.Sprintf("/v1/catalog/nodes?index=%d&wait=2s", index))
|
||||
resp, err := s.HttpClient.Get(url)
|
||||
if err != nil {
|
||||
return false, err
|
||||
|
|
Loading…
Reference in New Issue