diff --git a/cnf-certification-test/lifecycle/podrecreation/podrecreation.go b/cnf-certification-test/lifecycle/podrecreation/podrecreation.go index 8dd2f319b..edfd3fbf4 100644 --- a/cnf-certification-test/lifecycle/podrecreation/podrecreation.go +++ b/cnf-certification-test/lifecycle/podrecreation/podrecreation.go @@ -134,8 +134,8 @@ func deletePod(pod *corev1.Pod, mode string, wg *sync.WaitGroup) error { podName := pod.Name namespace := pod.Namespace go func() { + defer wg.Done() waitPodDeleted(namespace, podName, gracePeriodSeconds, watcher) - wg.Done() }() return nil }