Skip to content

Commit 2af2f09

Browse files
committed
test: fix ut failure
1 parent 61ff639 commit 2af2f09

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/blob/controllerserver_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,7 +1017,7 @@ func TestValidateVolumeCapabilities(t *testing.T) {
10171017
clientErr: DATAPLANE,
10181018
containerProp: &storage.ContainerProperties{},
10191019
expectedRes: nil,
1020-
expectedErr: status.Errorf(codes.Internal, retry.GetError(&http.Response{}, fmt.Errorf(containerBeingDeletedDataplaneAPIError)).Error().Error()),
1020+
expectedErr: status.Error(codes.Internal, fmt.Sprintf("ContainerProperties of volume(%s) is nil", "unit#test#test")),
10211021
},
10221022
{
10231023
name: "Requested Volume does not exist",
@@ -1029,7 +1029,7 @@ func TestValidateVolumeCapabilities(t *testing.T) {
10291029
clientErr: NULL,
10301030
containerProp: &storage.ContainerProperties{},
10311031
expectedRes: nil,
1032-
expectedErr: status.Errorf(codes.NotFound, fmt.Sprintf("requested volume(%s) does not exist", "unit#test#test")),
1032+
expectedErr: status.Errorf(codes.Internal, retry.GetError(&http.Response{}, fmt.Errorf(containerBeingDeletedDataplaneAPIError)).Error().Error()),
10331033
},
10341034
/*{ //Volume being shown as not existing. ContainerProperties.Deleted not setting correctly??
10351035
name: "Successful I/O",

0 commit comments

Comments
 (0)