Skip to content

Commit

Permalink
Add test case
Browse files Browse the repository at this point in the history
Add test case for unset retryFn
  • Loading branch information
rafiramadhana committed Oct 27, 2023
1 parent a1f7a0c commit e8c3318
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions request_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3380,6 +3380,12 @@ func TestRequest_WithRetryFunc(t *testing.T) {
},
callCount: 1,
},
{
name: "retry RetryAllErrors policy with unset retryFn",
policy: RetryAllErrors,
retryFn: nil,
callCount: 2,
},
}

for _, tt := range tests {
Expand Down

0 comments on commit e8c3318

Please sign in to comment.