Commit 3ed6ea96 authored by Wojciech Tyczynski's avatar Wojciech Tyczynski

Increase initialization timeout for podStore

parent 00458a12
...@@ -2806,7 +2806,7 @@ func DeleteRCAndWaitForGC(c clientset.Interface, ns, name string) error { ...@@ -2806,7 +2806,7 @@ func DeleteRCAndWaitForGC(c clientset.Interface, ns, name string) error {
func podStoreForRC(c clientset.Interface, rc *api.ReplicationController) (*testutils.PodStore, error) { func podStoreForRC(c clientset.Interface, rc *api.ReplicationController) (*testutils.PodStore, error) {
labels := labels.SelectorFromSet(rc.Spec.Selector) labels := labels.SelectorFromSet(rc.Spec.Selector)
ps := testutils.NewPodStore(c, rc.Namespace, labels, fields.Everything()) 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 { if len(ps.Reflector.LastSyncResourceVersion()) != 0 {
return true, nil return true, nil
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment