Fix waitForNPods in restart.go

This commit is contained in:
Zihong Zheng 2017-05-17 20:47:00 -07:00
parent 9a9a296556
commit 2095e0bee6

View File

@ -133,7 +133,7 @@ func waitForNPods(ps *testutils.PodStore, expect int, timeout time.Duration) ([]
var errLast error
found := wait.Poll(framework.Poll, timeout, func() (bool, error) {
allPods := ps.List()
pods := filterIrrelevantPods(allPods)
pods = filterIrrelevantPods(allPods)
if len(pods) != expect {
errLast = fmt.Errorf("expected to find %d pods but found only %d", expect, len(pods))
framework.Logf("Error getting pods: %v", errLast)