diff --git a/pkg/controllers/podgroup/pg_controller_test.go b/pkg/controllers/podgroup/pg_controller_test.go index cfe22d0cab..725428e8a1 100644 --- a/pkg/controllers/podgroup/pg_controller_test.go +++ b/pkg/controllers/podgroup/pg_controller_test.go @@ -313,7 +313,7 @@ func TestAddPodGroup(t *testing.T) { c.addPod(pod) replicas := int32(len(testCase.pods)) - c.createNormalPodPGIfNotExist(pod, &replicas) + c.createNormalPodPGIfNotExist(pod, replicas) pg, err := c.vcClient.SchedulingV1beta1().PodGroups(pod.Namespace).Get(context.TODO(), testCase.expectedPodGroup.Name,