Merge pull request #2715 from hashicorp/slackpad-patch-1

Drop testutil wait to 2 seconds.
This commit is contained in:
James Phillips 2017-02-06 12:06:14 -08:00 committed by GitHub
commit 3c26515607
1 changed files with 1 additions and 1 deletions

View File

@ -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