Increase initialization timeout for podStore

This commit is contained in:
Wojciech Tyczynski
2016-11-09 16:32:58 +01:00
parent 00458a12a8
commit 3ed6ea96c0

View File

@@ -2806,7 +2806,7 @@ func DeleteRCAndWaitForGC(c clientset.Interface, ns, name string) error {
func podStoreForRC(c clientset.Interface, rc *api.ReplicationController) (*testutils.PodStore, error) {
labels := labels.SelectorFromSet(rc.Spec.Selector)
ps := testutils.NewPodStore(c, rc.Namespace, labels, fields.Everything())
err := wait.Poll(1*time.Second, 1*time.Minute, func() (bool, error) {
err := wait.Poll(1*time.Second, 2*time.Minute, func() (bool, error) {
if len(ps.Reflector.LastSyncResourceVersion()) != 0 {
return true, nil
}