diff --git a/cluster-autoscaler/expander/grpcplugin/grpc_client_test.go b/cluster-autoscaler/expander/grpcplugin/grpc_client_test.go index cc5919f7f4cf..c97dced54e01 100644 --- a/cluster-autoscaler/expander/grpcplugin/grpc_client_test.go +++ b/cluster-autoscaler/expander/grpcplugin/grpc_client_test.go @@ -228,7 +228,7 @@ func TestBestOptionsValid(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() mockClient := mocks.NewMockExpanderClient(ctrl) - g := &grpcclientstrategy{grpcClient: mockClient} + g := &grpcclientstrategy{mockClient} nodeInfos := makeFakeNodeInfos() grpcNodeInfoMap := make(map[string]*v1.Node) @@ -254,7 +254,7 @@ func TestBestOptionsErrors(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() mockClient := mocks.NewMockExpanderClient(ctrl) - g := grpcclientstrategy{grpcClient: mockClient} + g := grpcclientstrategy{mockClient} badProtosOption := protos.Option{ NodeGroupId: "badID", @@ -272,7 +272,7 @@ func TestBestOptionsErrors(t *testing.T) { }{ { desc: "Bad gRPC client config", - client: grpcclientstrategy{grpcClient: nil}, + client: grpcclientstrategy{nil}, nodeInfo: makeFakeNodeInfos(), mockResponse: protos.BestOptionsResponse{}, errResponse: nil,