From b730c0b46dde02560c161841a1f0fb947f58484b Mon Sep 17 00:00:00 2001 From: Chao Xu Date: Mon, 24 Jul 2017 11:45:52 -0700 Subject: [PATCH] increate GC orphan test timeout --- test/e2e/apimachinery/garbage_collector.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/e2e/apimachinery/garbage_collector.go b/test/e2e/apimachinery/garbage_collector.go index b61b3840286..0ac47a23d61 100644 --- a/test/e2e/apimachinery/garbage_collector.go +++ b/test/e2e/apimachinery/garbage_collector.go @@ -297,9 +297,10 @@ var _ = SIGDescribe("Garbage collector", func() { // a client is 5. If the qps is saturated, it will take 20s to orphan // the pods. However, apiserver takes hundreds of ms to finish one // PATCH, and the gc sends the patching in a single thread, so the - // actual qps is less than 5. According to the test logs, 60s is enough - // time. - if err := wait.Poll(5*time.Second, 60*time.Second, func() (bool, error) { + // actual qps is less than 5. Also, the e2e tests are running in + // parallel, the GC controller might get distracted by other tests. + // According to the test logs, 120s is enough time. + if err := wait.Poll(5*time.Second, 120*time.Second, func() (bool, error) { rcs, err := rcClient.List(metav1.ListOptions{}) if err != nil { return false, fmt.Errorf("Failed to list rcs: %v", err)