diff --git a/internal/internal_test.go b/internal/internal_test.go index 56ff611e..bfdcbbbe 100644 --- a/internal/internal_test.go +++ b/internal/internal_test.go @@ -10,7 +10,7 @@ import ( func TestRetryBackoff(t *testing.T) { RegisterTestingT(t) - for i := -1; i <= 16; i++ { + for i := 0; i <= 16; i++ { backoff := RetryBackoff(i, time.Millisecond, 512*time.Millisecond) Expect(backoff >= 0).To(BeTrue()) Expect(backoff <= 512*time.Millisecond).To(BeTrue())