mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 22:17:14 +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,
|
code: http.StatusBadRequest,
|
||||||
expected: &Error{
|
expected: &Error{
|
||||||
Retriable: true,
|
Retriable: false,
|
||||||
HTTPStatusCode: http.StatusBadRequest,
|
HTTPStatusCode: http.StatusBadRequest,
|
||||||
RawError: fmt.Errorf("HTTP response: 400"),
|
RawError: fmt.Errorf("HTTP response: 400"),
|
||||||
},
|
},
|
||||||
@ -136,7 +136,7 @@ func TestGetStatusNotFoundAndForbiddenIgnoredError(t *testing.T) {
|
|||||||
{
|
{
|
||||||
code: http.StatusBadRequest,
|
code: http.StatusBadRequest,
|
||||||
expected: &Error{
|
expected: &Error{
|
||||||
Retriable: true,
|
Retriable: false,
|
||||||
HTTPStatusCode: http.StatusBadRequest,
|
HTTPStatusCode: http.StatusBadRequest,
|
||||||
RawError: fmt.Errorf("HTTP response: 400"),
|
RawError: fmt.Errorf("HTTP response: 400"),
|
||||||
},
|
},
|
||||||
@ -191,7 +191,7 @@ func TestShouldRetryHTTPRequest(t *testing.T) {
|
|||||||
}{
|
}{
|
||||||
{
|
{
|
||||||
code: http.StatusBadRequest,
|
code: http.StatusBadRequest,
|
||||||
expected: true,
|
expected: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
code: http.StatusInternalServerError,
|
code: http.StatusInternalServerError,
|
||||||
|
Loading…
Reference in New Issue
Block a user