mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-09-04 15:16:58 +00:00
linter(testifylint): use Len or Empty for arrays testing (#7555)
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
@@ -442,7 +442,7 @@ func TestPatchDynamicPVWithVolumeInfo(t *testing.T) {
|
||||
|
||||
errs := ctx.patchDynamicPVWithVolumeInfo()
|
||||
if tc.expectedErrNum > 0 {
|
||||
assert.Equal(t, tc.expectedErrNum, len(errs.Namespaces))
|
||||
assert.Len(t, errs.Namespaces, tc.expectedErrNum)
|
||||
}
|
||||
|
||||
for pvName, expectedPVInfo := range tc.expectedPatch {
|
||||
|
||||
Reference in New Issue
Block a user