fix tests; convert IsPodActive to operate on *Pod

This commit is contained in:
Chao Xu
2016-08-17 13:05:37 -07:00
parent 331083727f
commit 594234d61c
5 changed files with 10 additions and 6 deletions

View File

@@ -3166,7 +3166,7 @@ func waitForPodsInactive(ps *PodStore, interval, timeout time.Duration) error {
return wait.PollImmediate(interval, timeout, func() (bool, error) {
pods := ps.List()
for _, pod := range pods {
if controller.IsPodActive(*pod) {
if controller.IsPodActive(pod) {
return false, nil
}
}