From 11c322f62fb4dadf4e7f6eebf78dea932a595c8e Mon Sep 17 00:00:00 2001 From: Banashri Mandal Date: Mon, 4 Dec 2023 19:09:56 +0100 Subject: [PATCH] Fix WG done call (#1688) --- cnf-certification-test/lifecycle/podrecreation/podrecreation.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }