mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-17 15:50:10 +00:00
fix: enable expected-actual rule from testifylint in module k8s.io/kubelet
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
parent
a8c955ab42
commit
45faf310a5
@ -71,7 +71,7 @@ func TestInsert(t *testing.T) {
|
|||||||
recorder := httptest.NewRecorder()
|
recorder := httptest.NewRecorder()
|
||||||
require.NoError(t, WriteError(err, recorder))
|
require.NoError(t, WriteError(err, recorder))
|
||||||
errResponse := recorder.Result()
|
errResponse := recorder.Result()
|
||||||
assert.Equal(t, errResponse.StatusCode, http.StatusTooManyRequests)
|
assert.Equal(t, http.StatusTooManyRequests, errResponse.StatusCode)
|
||||||
assert.Equal(t, strconv.Itoa(int(cacheTTL.Seconds())), errResponse.Header.Get("Retry-After"))
|
assert.Equal(t, strconv.Itoa(int(cacheTTL.Seconds())), errResponse.Header.Get("Retry-After"))
|
||||||
|
|
||||||
assertCacheSize(t, c, maxInFlight)
|
assertCacheSize(t, c, maxInFlight)
|
||||||
|
Loading…
Reference in New Issue
Block a user