client: Fix linter - unused parameter

Signed-off-by: Evgenii Baidakov <evgenii@nspcc.io>
This commit is contained in:
Evgenii Baidakov 2023-05-16 12:38:27 +04:00
parent 9e1079723e
commit a4e14ab35b
No known key found for this signature in database
GPG key ID: 8733EE3D72CDB4DE

View file

@ -183,12 +183,16 @@ func TestStorageGroup_SetMembers_DoubleSetting(t *testing.T) {
var sg storagegroup.StorageGroup
mm := []oid.ID{oidtest.ID(), oidtest.ID(), oidtest.ID()} // cap is 3 at least
sg.SetMembers(mm)
require.NotPanics(t, func() {
sg.SetMembers(mm)
})
// the previous cap is more that a new length;
// slicing should not lead to `out of range`
// and apply update correctly
sg.SetMembers(mm[:1])
require.NotPanics(t, func() {
// the previous cap is more that a new length;
// slicing should not lead to `out of range`
// and apply update correctly
sg.SetMembers(mm[:1])
})
}
func TestStorageGroupFromObject(t *testing.T) {