forked from TrueCloudLab/frostfs-sdk-go
client: Fix linter - unused parameter
Signed-off-by: Evgenii Baidakov <evgenii@nspcc.io>
This commit is contained in:
parent
9e1079723e
commit
a4e14ab35b
1 changed files with 9 additions and 5 deletions
|
@ -183,12 +183,16 @@ func TestStorageGroup_SetMembers_DoubleSetting(t *testing.T) {
|
||||||
var sg storagegroup.StorageGroup
|
var sg storagegroup.StorageGroup
|
||||||
|
|
||||||
mm := []oid.ID{oidtest.ID(), oidtest.ID(), oidtest.ID()} // cap is 3 at least
|
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;
|
require.NotPanics(t, func() {
|
||||||
// slicing should not lead to `out of range`
|
// the previous cap is more that a new length;
|
||||||
// and apply update correctly
|
// slicing should not lead to `out of range`
|
||||||
sg.SetMembers(mm[:1])
|
// and apply update correctly
|
||||||
|
sg.SetMembers(mm[:1])
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestStorageGroupFromObject(t *testing.T) {
|
func TestStorageGroupFromObject(t *testing.T) {
|
||||||
|
|
Loading…
Reference in a new issue