diff --git a/test/e2e/framework/pod/wait.go b/test/e2e/framework/pod/wait.go index 5b63418c8deb4..8650f763cdf1c 100644 --- a/test/e2e/framework/pod/wait.go +++ b/test/e2e/framework/pod/wait.go @@ -566,13 +566,7 @@ func WaitForPodsInactive(ps *testutils.PodStore, interval, timeout time.Duration var activePods []*v1.Pod err := wait.PollImmediate(interval, timeout, func() (bool, error) { pods := ps.List() - activePods = nil - for _, pod := range pods { - if controller.IsPodActive(pod) { - activePods = append(activePods, pod) - } - } - + activePods = controller.FilterActivePods(pods) if len(activePods) != 0 { return false, nil }