forked from TrueCloudLab/frostfs-node
[#1016] frostfs-node: Fix gopls issues
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
6dbb61caf4
commit
d6534fd755
16 changed files with 53 additions and 52 deletions
|
@ -40,7 +40,7 @@ func copyVectors(v [][]netmap.NodeInfo) [][]netmap.NodeInfo {
|
|||
return vc
|
||||
}
|
||||
|
||||
func testPlacement(t *testing.T, ss, rs []int) ([][]netmap.NodeInfo, container.Container) {
|
||||
func testPlacement(ss, rs []int) ([][]netmap.NodeInfo, container.Container) {
|
||||
nodes := make([][]netmap.NodeInfo, 0, len(rs))
|
||||
replicas := make([]netmap.ReplicaDescriptor, 0, len(rs))
|
||||
num := uint32(0)
|
||||
|
@ -83,7 +83,7 @@ func TestTraverserObjectScenarios(t *testing.T) {
|
|||
selectors := []int{2, 3}
|
||||
replicas := []int{1, 2}
|
||||
|
||||
nodes, cnr := testPlacement(t, selectors, replicas)
|
||||
nodes, cnr := testPlacement(selectors, replicas)
|
||||
|
||||
nodesCopy := copyVectors(nodes)
|
||||
|
||||
|
@ -112,7 +112,7 @@ func TestTraverserObjectScenarios(t *testing.T) {
|
|||
selectors := []int{5, 3}
|
||||
replicas := []int{2, 2}
|
||||
|
||||
nodes, cnr := testPlacement(t, selectors, replicas)
|
||||
nodes, cnr := testPlacement(selectors, replicas)
|
||||
|
||||
nodesCopy := copyVectors(nodes)
|
||||
|
||||
|
@ -141,7 +141,7 @@ func TestTraverserObjectScenarios(t *testing.T) {
|
|||
selectors := []int{5, 3}
|
||||
replicas := []int{2, 2}
|
||||
|
||||
nodes, cnr := testPlacement(t, selectors, replicas)
|
||||
nodes, cnr := testPlacement(selectors, replicas)
|
||||
|
||||
nodesCopy := copyVectors(nodes)
|
||||
|
||||
|
@ -184,7 +184,7 @@ func TestTraverserObjectScenarios(t *testing.T) {
|
|||
selectors := []int{2, 3}
|
||||
replicas := []int{1, 2}
|
||||
|
||||
nodes, cnr := testPlacement(t, selectors, replicas)
|
||||
nodes, cnr := testPlacement(selectors, replicas)
|
||||
|
||||
tr, err := NewTraverser(
|
||||
ForContainer(cnr),
|
||||
|
@ -213,7 +213,7 @@ func TestTraverserRemValues(t *testing.T) {
|
|||
selectors := []int{3, 4, 5}
|
||||
replicas := []int{2, 3, 4}
|
||||
|
||||
nodes, cnr := testPlacement(t, selectors, replicas)
|
||||
nodes, cnr := testPlacement(selectors, replicas)
|
||||
nodesCopy := copyVectors(nodes)
|
||||
|
||||
testCases := [...]struct {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue