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:
Matthieu MOREL
2024-06-28 21:20:13 +02:00
committed by Kubernetes Publisher
parent 7f36d816ee
commit acc5917341
4 changed files with 6 additions and 6 deletions

View File

@@ -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())
}