Skip to content

Commit

Permalink
chore(util): Remove test which occasionally failed
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Feb 1, 2024
1 parent 68260ed commit cba13f4
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions internal/util/retry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,17 +73,4 @@ func TestRetry(t *testing.T) {
assert.Equal(t, 5, runs)
assert.Greater(t, time.Since(start), 15*time.Millisecond)
})

t.Run("cancel context", func(t *testing.T) {
var runs int
ctx, cancel := context.WithCancel(context.Background())
cancel()
if err := Retry(ctx, 10, 0, func(try uint) error {
runs += 1
return errors.New("test")
}); !assert.Error(t, err) {
return
}
assert.Equal(t, 1, runs)
})
}

0 comments on commit cba13f4

Please sign in to comment.