diff --git a/controllers/gce/controller/fakes.go b/controllers/gce/controller/fakes.go index 4e98c7792..cfa3ed08f 100644 --- a/controllers/gce/controller/fakes.go +++ b/controllers/gce/controller/fakes.go @@ -51,10 +51,10 @@ func NewFakeClusterManager(clusterName string) *fakeClusterManager { namer := utils.NewNamer(clusterName) 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.Init(&healthchecks.FakeHealthCheckGetter{nil}) + healthChecker.Init(&healthchecks.FakeHealthCheckGetter{}) backendPool := backends.NewBackendPool( fakeBackends, diff --git a/controllers/gce/loadbalancers/loadbalancers_test.go b/controllers/gce/loadbalancers/loadbalancers_test.go index 3d3732f24..8ccb7f347 100644 --- a/controllers/gce/loadbalancers/loadbalancers_test.go +++ b/controllers/gce/loadbalancers/loadbalancers_test.go @@ -39,9 +39,9 @@ func newFakeLoadBalancerPool(f LoadBalancers, t *testing.T) LoadBalancerPool { fakeHCs := healthchecks.NewFakeHealthChecks() namer := &utils.Namer{} healthChecker := healthchecks.NewHealthChecker(fakeHCs, "/", namer) - healthChecker.Init(&healthchecks.FakeHealthCheckGetter{nil}) + healthChecker.Init(&healthchecks.FakeHealthCheckGetter{}) nodePool := instances.NewNodePool(fakeIGs) - nodePool.Init(&instances.FakeZoneLister{[]string{defaultZone}}) + nodePool.Init(&instances.FakeZoneLister{Zones: []string{defaultZone}}) backendPool := backends.NewBackendPool( fakeBackends, healthChecker, nodePool, namer, []int64{}, false) return NewLoadBalancerPool(f, backendPool, testDefaultBeNodePort, namer)