Increase timeout for `WaitForResult`

This commit is contained in:
William Tisäter 2014-05-09 02:43:48 +02:00
parent 860cdb9c96
commit e1d111a43d
1 changed files with 2 additions and 2 deletions

View File

@ -10,10 +10,10 @@ type testFn func() (bool, error)
type errorFn func(error)
func WaitForResult(test testFn, error errorFn) {
retries := 100 // 5 seconds timeout
retries := 100
for retries > 0 {
time.Sleep(50 * time.Millisecond)
time.Sleep(100 * time.Millisecond)
retries--
success, err := test()