mirror of https://github.com/hashicorp/consul
Speed up test runs in `WaitForResult`
parent
e1d111a43d
commit
76d9fa255b
|
@ -10,10 +10,10 @@ type testFn func() (bool, error)
|
|||
type errorFn func(error)
|
||||
|
||||
func WaitForResult(test testFn, error errorFn) {
|
||||
retries := 100
|
||||
retries := 1000
|
||||
|
||||
for retries > 0 {
|
||||
time.Sleep(100 * time.Millisecond)
|
||||
time.Sleep(10 * time.Millisecond)
|
||||
retries--
|
||||
|
||||
success, err := test()
|
||||
|
|
Loading…
Reference in New Issue