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:
yumosx 2026-02-26 17:20:47 +08:00
parent 6e55119781
commit f2fb3d8e98

View file

@ -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 {