Skip to content

Commit

Permalink
Update retry_test.go
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
shogo82148 and coderabbitai[bot] authored Jun 18, 2024
1 parent 0618fb5 commit dcd4f97
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions retry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ func TestDo_Success(t *testing.T) {

func TestDo_MarkPermanent(t *testing.T) {
permanentErr := errors.New("permanent error")
// TestDo_MarkPermanent checks that a permanent error stops retries after one occurrence as expected.
policy := &Policy{MaxCount: 10}
count := 0
err := policy.Do(context.Background(), func() error {
Expand Down

0 comments on commit dcd4f97

Please sign in to comment.