From 687f8d08572ce1466933e7253a77f72b8fc3d851 Mon Sep 17 00:00:00 2001 From: Nathan McKinley Date: Thu, 12 Jul 2018 17:39:54 -0700 Subject: [PATCH] Sometimes we run tests on overloaded machines. (#1765) --- google/utils_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/google/utils_test.go b/google/utils_test.go index ba42841e..c234985d 100644 --- a/google/utils_test.go +++ b/google/utils_test.go @@ -488,7 +488,7 @@ func TestRetryTimeDuration(t *testing.T) { Code: 500, } } - retryTimeDuration(f, time.Duration(500)*time.Millisecond) + retryTimeDuration(f, time.Duration(1000)*time.Millisecond) if i < 2 { t.Errorf("expected error function to be called at least twice, but was called %d times", i) } @@ -503,7 +503,7 @@ func TestRetryTimeDuration_wrapped(t *testing.T) { } return errwrap.Wrapf("nested error: {{err}}", err) } - retryTimeDuration(f, time.Duration(500)*time.Millisecond) + retryTimeDuration(f, time.Duration(1000)*time.Millisecond) if i < 2 { t.Errorf("expected error function to be called at least twice, but was called %d times", i) } @@ -517,7 +517,7 @@ func TestRetryTimeDuration_noretry(t *testing.T) { Code: 400, } } - retryTimeDuration(f, time.Duration(500)*time.Millisecond) + retryTimeDuration(f, time.Duration(1000)*time.Millisecond) if i != 1 { t.Errorf("expected error function to be called exactly once, but was called %d times", i) }