Skip to content

Commit

Permalink
clean ups
Browse files Browse the repository at this point in the history
  • Loading branch information
BenHinthorne committed Jun 18, 2024
1 parent 22653a1 commit d879dbc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cluster-autoscaler/expander/grpcplugin/grpc_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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",
Expand All @@ -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,
Expand Down

0 comments on commit d879dbc

Please sign in to comment.