From af998345158ff9ed46c4d94b9229286b4419a3aa Mon Sep 17 00:00:00 2001 From: Matt Reiferson Date: Sun, 12 Sep 2021 15:30:03 -0700 Subject: [PATCH] config: don't test a backoff > MAXINT on 386 --- config_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/config_test.go b/config_test.go index 060b0739..2fd1a872 100644 --- a/config_test.go +++ b/config_test.go @@ -83,7 +83,6 @@ func TestFullJitterBackoff(t *testing.T) { 566028617 * time.Nanosecond, 1365407263 * time.Nanosecond, 5232470547 * time.Nanosecond, - 21467499218 * time.Nanosecond, } backoffTest(t, expected, func(c *Config) BackoffStrategy { return &FullJitterStrategy{cfg: c, rng: rand.New(rand.NewSource(99))} @@ -92,7 +91,7 @@ func TestFullJitterBackoff(t *testing.T) { func backoffTest(t *testing.T, expected []time.Duration, cb func(c *Config) BackoffStrategy) { config := NewConfig() - attempts := []int{0, 1, 3, 5} + attempts := []int{0, 1, 3} s := cb(config) for i := range attempts { result := s.Calculate(attempts[i])