Fix unnecessary copying of list

This commit is contained in:
Alexander Block 2021-02-10 17:56:59 +01:00
parent 277b917a24
commit cc4aca62f4
1 changed files with 1 additions and 3 deletions

View File

@ -372,9 +372,7 @@ func TestLoadBalancerSubnets(t *testing.T) {
CIDR: cidr,
})
}
for _, s := range test.lbSubnets {
cluster.Spec.API.LoadBalancer.Subnets = append(cluster.Spec.API.LoadBalancer.Subnets, s)
}
cluster.Spec.API.LoadBalancer.Subnets = test.lbSubnets
errs := awsValidateCluster(&cluster)
testErrors(t, test, errs, test.expected)
}