@@ -988,7 +988,6 @@ func TestValidateClaimStatusUpdate(t *testing.T) {
988
988
"valid-network-device-status" : {
989
989
oldClaim : func () * resource.ResourceClaim { return validAllocatedClaim }(),
990
990
update : func (claim * resource.ResourceClaim ) * resource.ResourceClaim {
991
- claim = claim .DeepCopy ()
992
991
claim .Status .Devices = []resource.AllocatedDeviceStatus {
993
992
{
994
993
Driver : goodName ,
@@ -1023,7 +1022,6 @@ func TestValidateClaimStatusUpdate(t *testing.T) {
1023
1022
},
1024
1023
oldClaim : func () * resource.ResourceClaim { return validAllocatedClaim }(),
1025
1024
update : func (claim * resource.ResourceClaim ) * resource.ResourceClaim {
1026
- claim = claim .DeepCopy ()
1027
1025
claim .Status .Devices = []resource.AllocatedDeviceStatus {
1028
1026
{
1029
1027
Driver : goodName ,
@@ -1046,7 +1044,6 @@ func TestValidateClaimStatusUpdate(t *testing.T) {
1046
1044
},
1047
1045
oldClaim : func () * resource.ResourceClaim { return validAllocatedClaim }(),
1048
1046
update : func (claim * resource.ResourceClaim ) * resource.ResourceClaim {
1049
- claim = claim .DeepCopy ()
1050
1047
claim .Status .Devices = []resource.AllocatedDeviceStatus {
1051
1048
{
1052
1049
Driver : goodName ,
@@ -1069,7 +1066,6 @@ func TestValidateClaimStatusUpdate(t *testing.T) {
1069
1066
},
1070
1067
oldClaim : func () * resource.ResourceClaim { return validAllocatedClaim }(),
1071
1068
update : func (claim * resource.ResourceClaim ) * resource.ResourceClaim {
1072
- claim = claim .DeepCopy ()
1073
1069
claim .Status .Devices = []resource.AllocatedDeviceStatus {
1074
1070
{
1075
1071
Driver : goodName ,
@@ -1090,7 +1086,6 @@ func TestValidateClaimStatusUpdate(t *testing.T) {
1090
1086
},
1091
1087
oldClaim : func () * resource.ResourceClaim { return validAllocatedClaim }(),
1092
1088
update : func (claim * resource.ResourceClaim ) * resource.ResourceClaim {
1093
- claim = claim .DeepCopy ()
1094
1089
claim .Status .Devices = []resource.AllocatedDeviceStatus {
1095
1090
{
1096
1091
Driver : "b" ,
@@ -1106,7 +1101,6 @@ func TestValidateClaimStatusUpdate(t *testing.T) {
1106
1101
wantFailures : nil ,
1107
1102
oldClaim : func () * resource.ResourceClaim { return validAllocatedClaim }(),
1108
1103
update : func (claim * resource.ResourceClaim ) * resource.ResourceClaim {
1109
- claim = claim .DeepCopy ()
1110
1104
claim .Status .Devices = []resource.AllocatedDeviceStatus {
1111
1105
{
1112
1106
Driver : goodName ,
@@ -1127,7 +1121,6 @@ func TestValidateClaimStatusUpdate(t *testing.T) {
1127
1121
wantFailures : nil ,
1128
1122
oldClaim : func () * resource.ResourceClaim { return validAllocatedClaim }(),
1129
1123
update : func (claim * resource.ResourceClaim ) * resource.ResourceClaim {
1130
- claim = claim .DeepCopy ()
1131
1124
claim .Status .Devices = []resource.AllocatedDeviceStatus {
1132
1125
{
1133
1126
Driver : goodName ,
@@ -1148,7 +1141,6 @@ func TestValidateClaimStatusUpdate(t *testing.T) {
1148
1141
wantFailures : nil ,
1149
1142
oldClaim : func () * resource.ResourceClaim { return validAllocatedClaim }(),
1150
1143
update : func (claim * resource.ResourceClaim ) * resource.ResourceClaim {
1151
- claim = claim .DeepCopy ()
1152
1144
claim .Status .Devices = []resource.AllocatedDeviceStatus {
1153
1145
{
1154
1146
Driver : goodName ,
@@ -1167,7 +1159,6 @@ func TestValidateClaimStatusUpdate(t *testing.T) {
1167
1159
wantFailures : nil ,
1168
1160
oldClaim : func () * resource.ResourceClaim { return validAllocatedClaim }(),
1169
1161
update : func (claim * resource.ResourceClaim ) * resource.ResourceClaim {
1170
- claim = claim .DeepCopy ()
1171
1162
claim .Status .Devices = []resource.AllocatedDeviceStatus {
1172
1163
{
1173
1164
Driver : "b" ,
0 commit comments