mirror of
https://github.com/status-im/consul.git
synced 2025-01-10 22:06:20 +00:00
Speed up test runs in WaitForResult
This commit is contained in:
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…
x
Reference in New Issue
Block a user