mirror of
https://github.com/kubernetes/client-go.git
synced 2025-09-19 17:52:27 +00:00
fix: enable empty and len rules from testifylint on pkg package
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com> Co-authored-by: Patrick Ohly <patrick.ohly@intel.com> Kubernetes-commit: f014b754fb5925dfbca6e27a44d0c3968b157e14
This commit is contained in:
committed by
Kubernetes Publisher
parent
7f36d816ee
commit
acc5917341
@@ -132,7 +132,7 @@ func TestCheckListFromCacheDataConsistencyIfRequestedInternalHappyPath(t *testin
|
||||
checkListFromCacheDataConsistencyIfRequestedInternal(ctx, "", fakeLister.List, listOptions, scenario.retrievedList)
|
||||
|
||||
require.Equal(t, 1, fakeLister.counter)
|
||||
require.Equal(t, 1, len(fakeLister.requestOptions))
|
||||
require.Len(t, fakeLister.requestOptions, 1)
|
||||
require.Equal(t, fakeLister.requestOptions[0], scenario.expectedRequestOptions)
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user