mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 01:06:27 +00:00
increate gc e2e test timeout
This commit is contained in:
parent
9af1ff3dce
commit
bffc827630
@ -645,8 +645,8 @@ var _ = SIGDescribe("Garbage collector", func() {
|
|||||||
framework.Failf("failed to delete the rc: %v", err)
|
framework.Failf("failed to delete the rc: %v", err)
|
||||||
}
|
}
|
||||||
By("wait for the rc to be deleted")
|
By("wait for the rc to be deleted")
|
||||||
// default client QPS is 20, deleting each pod requires 2 requests, so 30s should be enough
|
// TODO: shorten the timeout when we make GC's periodic API rediscovery more efficient.
|
||||||
if err := wait.Poll(5*time.Second, 30*time.Second, func() (bool, error) {
|
if err := wait.Poll(5*time.Second, 90*time.Second, func() (bool, error) {
|
||||||
_, err := rcClient.Get(rc1.Name, metav1.GetOptions{})
|
_, err := rcClient.Get(rc1.Name, metav1.GetOptions{})
|
||||||
if err == nil {
|
if err == nil {
|
||||||
pods, _ := podClient.List(metav1.ListOptions{})
|
pods, _ := podClient.List(metav1.ListOptions{})
|
||||||
|
Loading…
Reference in New Issue
Block a user