From 3fbf7df0144b53a5c5af591df1641527c78b94e6 Mon Sep 17 00:00:00 2001 From: Vladimir Mihailenco Date: Tue, 28 Jul 2020 16:26:03 +0300 Subject: [PATCH] Fix test --- internal/internal_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/internal_test.go b/internal/internal_test.go index 56ff611..bfdcbbb 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())