From e8cd2bfb4877d8e25eed270dea8b01512899cfce Mon Sep 17 00:00:00 2001 From: Arjan Bal Date: Thu, 27 Jun 2024 01:18:36 +0530 Subject: [PATCH] Fix vet --- internal/stubserver/stubserver.go | 2 +- xds/internal/balancer/clusterimpl/tests/balancer_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/stubserver/stubserver.go b/internal/stubserver/stubserver.go index 620d629ca041..61f96905991c 100644 --- a/internal/stubserver/stubserver.go +++ b/internal/stubserver/stubserver.go @@ -238,7 +238,7 @@ func (ss *StubServer) Stop() { for i := len(ss.cleanups) - 1; i >= 0; i-- { ss.cleanups[i]() } - ss.cleanups = nil + ss.cleanups = nil } func parseCfg(r *manual.Resolver, s string) *serviceconfig.ParseResult { diff --git a/xds/internal/balancer/clusterimpl/tests/balancer_test.go b/xds/internal/balancer/clusterimpl/tests/balancer_test.go index 8c0bce7d67bc..c3b129133b5f 100644 --- a/xds/internal/balancer/clusterimpl/tests/balancer_test.go +++ b/xds/internal/balancer/clusterimpl/tests/balancer_test.go @@ -232,7 +232,7 @@ func (s) TestLoadReportingPickFirstMultiLocality(t *testing.T) { Listeners: []*v3listenerpb.Listener{e2e.DefaultClientListener(serviceName, routeConfigName)}, Routes: []*v3routepb.RouteConfiguration{e2e.DefaultRouteConfig(routeConfigName, serviceName, clusterName)}, Clusters: []*v3clusterpb.Cluster{ - &v3clusterpb.Cluster{ + { Name: clusterName, ClusterDiscoveryType: &v3clusterpb.Cluster_Type{Type: v3clusterpb.Cluster_EDS}, EdsClusterConfig: &v3clusterpb.Cluster_EdsClusterConfig{