Skip to content

Commit

Permalink
Replace int32 with int when deleting pods in test
Browse files Browse the repository at this point in the history
  • Loading branch information
rzvoncek committed Nov 29, 2024
1 parent 7462772 commit d5607c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/medusa/medusabackupjob_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ func findDatacenterCondition(status *cassdcapi.CassandraDatacenterStatus, condTy
}

func deleteDatacenterPods(t *testing.T, f *framework.Framework, ctx context.Context, dcKey framework.ClusterKey, dc *cassdcapi.CassandraDatacenter) {
for i := int32(0); i < dc.Spec.Size; i++ {
for i := 0; i < int(dc.Spec.Size); i++ {
pod := &corev1.Pod{}
podName := fmt.Sprintf("%s-%s-%d", dc.Spec.ClusterName, dc.DatacenterName(), i)
podKey := framework.NewClusterKey(dcKey.K8sContext, dcKey.Namespace, podName)
Expand Down

0 comments on commit d5607c6

Please sign in to comment.