Skip to content

Commit 3279fb3

Browse files
committed
test: fix ut
1 parent d044aca commit 3279fb3

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
@@ -1076,7 +1076,7 @@ func TestValidateVolumeCapabilities(t *testing.T) {
10761076
clientErr: DATAPLANE,
10771077
containerProp: &storage.ContainerProperties{},
10781078
expectedRes: nil,
1079-
expectedErr: status.Errorf(codes.Internal, retry.GetError(&http.Response{}, fmt.Errorf(containerBeingDeletedDataplaneAPIError)).Error().Error()),
1079+
expectedErr: status.Error(codes.Internal, fmt.Sprintf("ContainerProperties of volume(%s) is nil", "unit#test#test")),
10801080
},
10811081
{
10821082
name: "Requested Volume does not exist",
@@ -1088,7 +1088,7 @@ func TestValidateVolumeCapabilities(t *testing.T) {
10881088
clientErr: NULL,
10891089
containerProp: &storage.ContainerProperties{},
10901090
expectedRes: nil,
1091-
expectedErr: status.Errorf(codes.NotFound, fmt.Sprintf("requested volume(%s) does not exist", "unit#test#test")),
1091+
expectedErr: status.Errorf(codes.Internal, retry.GetError(&http.Response{}, fmt.Errorf(containerBeingDeletedDataplaneAPIError)).Error().Error()),
10921092
},
10931093
/*{ //Volume being shown as not existing. ContainerProperties.Deleted not setting correctly??
10941094
name: "Successful I/O",

0 commit comments

Comments
 (0)