diff --git a/workflow/controller/workflowpod_test.go b/workflow/controller/workflowpod_test.go index ffa8a23eee05..4cdcbc75bb4e 100644 --- a/workflow/controller/workflowpod_test.go +++ b/workflow/controller/workflowpod_test.go @@ -1637,7 +1637,7 @@ func TestPodExists(t *testing.T) { assert.NoError(t, err) assert.Len(t, pods.Items, 1) - existingPod, doesExist, err := woc.podExists(pod.Name) + existingPod, doesExist, err := woc.podExists(pod.ObjectMeta.Name) assert.NoError(t, err) assert.NotNil(t, existingPod) assert.True(t, doesExist)