Skip to content

Commit

Permalink
refactor: use controller.FilterActivePods in framework e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
draveness committed Jul 1, 2019
1 parent 8865cb3 commit 83e0d99
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions test/e2e/framework/pod/wait.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 83e0d99

Please sign in to comment.