mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 12:15:52 +00:00
fix: test failures
This commit is contained in:
parent
ece8aefe1f
commit
6359080d4f
@ -54,7 +54,7 @@ func TestGetError(t *testing.T) {
|
||||
{
|
||||
code: http.StatusBadRequest,
|
||||
expected: &Error{
|
||||
Retriable: true,
|
||||
Retriable: false,
|
||||
HTTPStatusCode: http.StatusBadRequest,
|
||||
RawError: fmt.Errorf("HTTP response: 400"),
|
||||
},
|
||||
@ -136,7 +136,7 @@ func TestGetStatusNotFoundAndForbiddenIgnoredError(t *testing.T) {
|
||||
{
|
||||
code: http.StatusBadRequest,
|
||||
expected: &Error{
|
||||
Retriable: true,
|
||||
Retriable: false,
|
||||
HTTPStatusCode: http.StatusBadRequest,
|
||||
RawError: fmt.Errorf("HTTP response: 400"),
|
||||
},
|
||||
@ -191,7 +191,7 @@ func TestShouldRetryHTTPRequest(t *testing.T) {
|
||||
}{
|
||||
{
|
||||
code: http.StatusBadRequest,
|
||||
expected: true,
|
||||
expected: false,
|
||||
},
|
||||
{
|
||||
code: http.StatusInternalServerError,
|
||||
|
Loading…
Reference in New Issue
Block a user