mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 05:57:25 +00:00
increate GC orphan test timeout
This commit is contained in:
parent
fe8f6a1599
commit
b730c0b46d
@ -297,9 +297,10 @@ var _ = SIGDescribe("Garbage collector", func() {
|
|||||||
// a client is 5. If the qps is saturated, it will take 20s to orphan
|
// 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
|
// the pods. However, apiserver takes hundreds of ms to finish one
|
||||||
// PATCH, and the gc sends the patching in a single thread, so the
|
// 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
|
// actual qps is less than 5. Also, the e2e tests are running in
|
||||||
// time.
|
// parallel, the GC controller might get distracted by other tests.
|
||||||
if err := wait.Poll(5*time.Second, 60*time.Second, func() (bool, error) {
|
// 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{})
|
rcs, err := rcClient.List(metav1.ListOptions{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return false, fmt.Errorf("Failed to list rcs: %v", err)
|
return false, fmt.Errorf("Failed to list rcs: %v", err)
|
||||||
|
Loading…
Reference in New Issue
Block a user