From fee5ce17a561c273923b879434abf786c51157e3 Mon Sep 17 00:00:00 2001 From: bnshr Date: Mon, 4 Dec 2023 14:28:52 +0100 Subject: [PATCH] Fix WG done call --- 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 }