mirror of
https://github.com/status-im/consul.git
synced 2025-01-11 06:16:08 +00:00
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
|
var index int64
|
||||||
WaitForResult(func() (bool, error) {
|
WaitForResult(func() (bool, error) {
|
||||||
// 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=10s", index))
|
url := s.url(fmt.Sprintf("/v1/catalog/nodes?index=%d&wait=2s", index))
|
||||||
resp, err := s.HttpClient.Get(url)
|
resp, err := s.HttpClient.Get(url)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return false, err
|
return false, err
|
||||||
|
Loading…
x
Reference in New Issue
Block a user