Merge pull request #49989 from caesarxuchao/increase-timeout

Automatic merge from submit-queue

Increase gc e2e test timeout

Fix https://github.com/kubernetes/kubernetes/issues/49966. The reasoning is in https://github.com/kubernetes/kubernetes/issues/49966.

We should revert the change when we make the GC's periodic API discovery more efficient.

cc @liggitt  @jpbetz
This commit is contained in:
Kubernetes Submit Queue 2017-08-02 16:25:40 -07:00 committed by GitHub
commit 5727a5d750

View File

@ -645,8 +645,8 @@ var _ = SIGDescribe("Garbage collector", func() {
framework.Failf("failed to delete the rc: %v", err)
}
By("wait for the rc to be deleted")
// default client QPS is 20, deleting each pod requires 2 requests, so 30s should be enough
if err := wait.Poll(5*time.Second, 30*time.Second, func() (bool, error) {
// TODO: shorten the timeout when we make GC's periodic API rediscovery more efficient.
if err := wait.Poll(5*time.Second, 90*time.Second, func() (bool, error) {
_, err := rcClient.Get(rc1.Name, metav1.GetOptions{})
if err == nil {
pods, _ := podClient.List(metav1.ListOptions{})