Fix lint errors
This commit is contained in:
parent
99209ad33d
commit
61dad19f8e
2 changed files with 4 additions and 4 deletions
|
@ -51,10 +51,10 @@ func NewFakeClusterManager(clusterName string) *fakeClusterManager {
|
||||||
namer := utils.NewNamer(clusterName)
|
namer := utils.NewNamer(clusterName)
|
||||||
|
|
||||||
nodePool := instances.NewNodePool(fakeIGs)
|
nodePool := instances.NewNodePool(fakeIGs)
|
||||||
nodePool.Init(&instances.FakeZoneLister{[]string{"zone-a"}})
|
nodePool.Init(&instances.FakeZoneLister{Zones: []string{"zone-a"}})
|
||||||
|
|
||||||
healthChecker := healthchecks.NewHealthChecker(fakeHCs, "/", namer)
|
healthChecker := healthchecks.NewHealthChecker(fakeHCs, "/", namer)
|
||||||
healthChecker.Init(&healthchecks.FakeHealthCheckGetter{nil})
|
healthChecker.Init(&healthchecks.FakeHealthCheckGetter{})
|
||||||
|
|
||||||
backendPool := backends.NewBackendPool(
|
backendPool := backends.NewBackendPool(
|
||||||
fakeBackends,
|
fakeBackends,
|
||||||
|
|
|
@ -39,9 +39,9 @@ func newFakeLoadBalancerPool(f LoadBalancers, t *testing.T) LoadBalancerPool {
|
||||||
fakeHCs := healthchecks.NewFakeHealthChecks()
|
fakeHCs := healthchecks.NewFakeHealthChecks()
|
||||||
namer := &utils.Namer{}
|
namer := &utils.Namer{}
|
||||||
healthChecker := healthchecks.NewHealthChecker(fakeHCs, "/", namer)
|
healthChecker := healthchecks.NewHealthChecker(fakeHCs, "/", namer)
|
||||||
healthChecker.Init(&healthchecks.FakeHealthCheckGetter{nil})
|
healthChecker.Init(&healthchecks.FakeHealthCheckGetter{})
|
||||||
nodePool := instances.NewNodePool(fakeIGs)
|
nodePool := instances.NewNodePool(fakeIGs)
|
||||||
nodePool.Init(&instances.FakeZoneLister{[]string{defaultZone}})
|
nodePool.Init(&instances.FakeZoneLister{Zones: []string{defaultZone}})
|
||||||
backendPool := backends.NewBackendPool(
|
backendPool := backends.NewBackendPool(
|
||||||
fakeBackends, healthChecker, nodePool, namer, []int64{}, false)
|
fakeBackends, healthChecker, nodePool, namer, []int64{}, false)
|
||||||
return NewLoadBalancerPool(f, backendPool, testDefaultBeNodePort, namer)
|
return NewLoadBalancerPool(f, backendPool, testDefaultBeNodePort, namer)
|
||||||
|
|
Loading…
Reference in a new issue