From 61dad19f8e94ee873c50f1b6085b0abeaed72f55 Mon Sep 17 00:00:00 2001 From: Manuel de Brito Fontes Date: Tue, 27 Dec 2016 23:19:31 -0300 Subject: [PATCH] Fix lint errors --- controllers/gce/controller/fakes.go | 4 ++-- controllers/gce/loadbalancers/loadbalancers_test.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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)