Use nonexistent image instead of minReadySeconds in deployment rollover e2e test

This commit is contained in:
Janet Kuo
2016-07-25 11:22:18 -07:00
parent 8bc8cfd131
commit b45afc04a2
2 changed files with 4 additions and 7 deletions

View File

@@ -605,6 +605,7 @@ func countAvailablePods(pods []api.Pod, minReadySeconds int32) int32 {
availablePodCount := int32(0)
for _, pod := range pods {
// TODO: Make the time.Now() as argument to allow unit test this.
// FIXME: avoid using time.Now
if IsPodAvailable(&pod, minReadySeconds, time.Now()) {
glog.V(4).Infof("Pod %s/%s is available.", pod.Namespace, pod.Name)
availablePodCount++