From e1d111a43dd0f9b88358d3509ae8944a092733e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?William=20Tisa=CC=88ter?= Date: Fri, 9 May 2014 02:43:48 +0200 Subject: [PATCH] Increase timeout for `WaitForResult` --- testutil/wait.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testutil/wait.go b/testutil/wait.go index 7eb49a8e4d..dd51d8c26e 100644 --- a/testutil/wait.go +++ b/testutil/wait.go @@ -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()