From d6f5acb407ddf2d6f7afbe3e380eda5a2908dcbd Mon Sep 17 00:00:00 2001 From: Yuan Tang Date: Mon, 23 Aug 2021 12:03:15 -0400 Subject: [PATCH] fix: Fix unit test with missing createRunningPods() (#6585) Signed-off-by: Yuan Tang --- workflow/controller/controller_test.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/workflow/controller/controller_test.go b/workflow/controller/controller_test.go index 8036bf4f85bf..be053327ecf0 100644 --- a/workflow/controller/controller_test.go +++ b/workflow/controller/controller_test.go @@ -281,9 +281,7 @@ func withAnnotation(key, val string) with { // createRunningPods creates the pods that are marked as running in a given test so that they can be accessed by the // pod assessor -// This function is called `createRunningPods`, but since it is currently not used and should not be removed it has been -// renamed to `_` until a use is found. -func _(ctx context.Context, woc *wfOperationCtx) { +func createRunningPods(ctx context.Context, woc *wfOperationCtx) { podcs := woc.controller.kubeclientset.CoreV1().Pods(woc.wf.GetNamespace()) for _, node := range woc.wf.Status.Nodes { if node.Type == wfv1.NodeTypePod && node.Phase == wfv1.NodeRunning {