Increase timeout for `WaitForResult`
This commit is contained in:
parent
30f8573c78
commit
e1471576a4
|
@ -10,10 +10,10 @@ type testFn func() (bool, error)
|
||||||
type errorFn func(error)
|
type errorFn func(error)
|
||||||
|
|
||||||
func WaitForResult(test testFn, error errorFn) {
|
func WaitForResult(test testFn, error errorFn) {
|
||||||
retries := 100 // 5 seconds timeout
|
retries := 100
|
||||||
|
|
||||||
for retries > 0 {
|
for retries > 0 {
|
||||||
time.Sleep(50 * time.Millisecond)
|
time.Sleep(100 * time.Millisecond)
|
||||||
retries--
|
retries--
|
||||||
|
|
||||||
success, err := test()
|
success, err := test()
|
||||||
|
|
Loading…
Reference in New Issue