@@ -244,7 +244,7 @@ func TestValidateDeleteStageStatus(t *testing.T) {
244244 name string
245245 updatingStageIndex int
246246 lastFinishedStageIndex int
247- toBeDeletedBindings []* placementv1beta1.ClusterResourceBinding
247+ toBeDeletedBindings []placementv1beta1.BindingObj
248248 deleteStageStatus * placementv1beta1.StageUpdatingStatus
249249 wantErr error
250250 wantUpdatingStageIndex int
@@ -257,12 +257,12 @@ func TestValidateDeleteStageStatus(t *testing.T) {
257257 },
258258 {
259259 name : "validateDeleteStageStatus should return error if there's new to-be-deleted bindings" ,
260- toBeDeletedBindings : []* placementv1beta1.ClusterResourceBinding {
261- {
260+ toBeDeletedBindings : []placementv1beta1.BindingObj {
261+ & placementv1beta1. ClusterResourceBinding {
262262 ObjectMeta : metav1.ObjectMeta {Name : "binding-1" },
263263 Spec : placementv1beta1.ResourceBindingSpec {TargetCluster : "cluster-1" },
264264 },
265- {
265+ & placementv1beta1. ClusterResourceBinding {
266266 ObjectMeta : metav1.ObjectMeta {Name : "binding-2" },
267267 Spec : placementv1beta1.ResourceBindingSpec {TargetCluster : "cluster-2" },
268268 },
@@ -280,8 +280,8 @@ func TestValidateDeleteStageStatus(t *testing.T) {
280280 name : "validateDeleteStageStatus should not return error if there's fewer to-be-deleted bindings" ,
281281 updatingStageIndex : - 1 ,
282282 lastFinishedStageIndex : - 1 ,
283- toBeDeletedBindings : []* placementv1beta1.ClusterResourceBinding {
284- {
283+ toBeDeletedBindings : []placementv1beta1.BindingObj {
284+ & placementv1beta1. ClusterResourceBinding {
285285 ObjectMeta : metav1.ObjectMeta {Name : "binding-1" },
286286 Spec : placementv1beta1.ResourceBindingSpec {TargetCluster : "cluster-1" },
287287 },
@@ -300,8 +300,8 @@ func TestValidateDeleteStageStatus(t *testing.T) {
300300 name : "validateDeleteStageStatus should not return error if there are equal to-be-deleted bindings" ,
301301 updatingStageIndex : - 1 ,
302302 lastFinishedStageIndex : - 1 ,
303- toBeDeletedBindings : []* placementv1beta1.ClusterResourceBinding {
304- {
303+ toBeDeletedBindings : []placementv1beta1.BindingObj {
304+ & placementv1beta1. ClusterResourceBinding {
305305 ObjectMeta : metav1.ObjectMeta {Name : "binding-1" },
306306 Spec : placementv1beta1.ResourceBindingSpec {TargetCluster : "cluster-1" },
307307 },
0 commit comments