Skip to content

Commit

Permalink
config: don't test a backoff > MAXINT on 386
Browse files Browse the repository at this point in the history
  • Loading branch information
mreiferson committed Sep 12, 2021
1 parent 37690ba commit af99834
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))}
Expand All @@ -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])
Expand Down

0 comments on commit af99834

Please sign in to comment.