mirror of
https://github.com/kubernetes/client-go.git
synced 2025-09-04 16:40:21 +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
2
tools/cache/reflector_test.go
vendored
2
tools/cache/reflector_test.go
vendored
@@ -194,7 +194,7 @@ func TestReflectorWatchStoppedAfter(t *testing.T) {
|
||||
|
||||
err := target.watch(nil, stopCh, nil)
|
||||
require.NoError(t, err)
|
||||
require.Equal(t, 1, len(watchers))
|
||||
require.Len(t, watchers, 1)
|
||||
require.True(t, watchers[0].IsStopped())
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user