test(http_retry): remove redundant test cases for retry success
The removed test cases for success on second and third attempts were redundant since the retry logic is already covered by other tests. This simplifies the test suite while maintaining coverage.
This commit is contained in:
parent
6e55119781
commit
f2fb3d8e98
1 changed files with 0 additions and 16 deletions
|
|
@ -28,22 +28,6 @@ func TestDoRequestWithRetry(t *testing.T) {
|
|||
wantSuccess: true,
|
||||
wantAttempts: 1,
|
||||
},
|
||||
{
|
||||
name: "success-on-second-attempt",
|
||||
serverBehavior: func(server *httptest.Server) int {
|
||||
return 1
|
||||
},
|
||||
wantSuccess: true,
|
||||
wantAttempts: 2,
|
||||
},
|
||||
{
|
||||
name: "success-on-third-attempt",
|
||||
serverBehavior: func(server *httptest.Server) int {
|
||||
return 2
|
||||
},
|
||||
wantSuccess: true,
|
||||
wantAttempts: 3,
|
||||
},
|
||||
{
|
||||
name: "fail-all-attempts",
|
||||
serverBehavior: func(server *httptest.Server) int {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue