Speed up test runs in WaitForResult

This commit is contained in:
William Tisäter 2014-05-09 03:00:43 +02:00
parent e1d111a43d
commit 76d9fa255b

View File

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