Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
Signed-off-by: Shyam Radhakrishnan <[email protected]>
  • Loading branch information
sradhakrishnan-px committed Sep 26, 2024
1 parent 9230f80 commit 4990734
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions csi/controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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{
Expand Down

0 comments on commit 4990734

Please sign in to comment.