From 49907340ac6149b9ec3bcd1f0ce8099421f4c20d Mon Sep 17 00:00:00 2001 From: Shyam Radhakrishnan Date: Thu, 26 Sep 2024 10:57:33 +0530 Subject: [PATCH] Fix unit tests Signed-off-by: Shyam Radhakrishnan --- csi/controller_test.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/csi/controller_test.go b/csi/controller_test.go index c881374ac..2f45fe497 100644 --- a/csi/controller_test.go +++ b/csi/controller_test.go @@ -3929,10 +3929,6 @@ func TestOsdCsiServer_DeleteCloudSnapshot(t *testing.T) { cloudBackupClient: mockCloudBackupClient, }, func() { - mockRoundRobinBalancer.EXPECT().GetRemoteNodeConnection(gomock.Any()).DoAndReturn( - func(ctx context.Context) (*grpc.ClientConn, bool, error) { - return nil, true, nil - }) mockCloudBackupClient.EXPECT().Status(gomock.Any(), gomock.Any(), gomock.Any()). DoAndReturn(func(ctx context.Context, req *api.SdkCloudBackupStatusRequest, opts ...grpc.CallOption) (*api.SdkCloudBackupStatusResponse, error) { return nil, mockErr @@ -3953,10 +3949,6 @@ func TestOsdCsiServer_DeleteCloudSnapshot(t *testing.T) { cloudBackupClient: mockCloudBackupClient, }, func() { - mockRoundRobinBalancer.EXPECT().GetRemoteNodeConnection(gomock.Any()).DoAndReturn( - func(ctx context.Context) (*grpc.ClientConn, bool, error) { - return nil, true, nil - }) mockCloudBackupClient.EXPECT().Status(gomock.Any(), gomock.Any(), gomock.Any()). DoAndReturn(func(ctx context.Context, req *api.SdkCloudBackupStatusRequest, opts ...grpc.CallOption) (*api.SdkCloudBackupStatusResponse, error) { return &api.SdkCloudBackupStatusResponse{