mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 14:07:14 +00:00
increase the GC e2e test timeout because the API re-discovery increases the latency
This commit is contained in:
parent
04b2c29a5a
commit
47b019978e
@ -646,6 +646,7 @@ var _ = SIGDescribe("Garbage collector", func() {
|
|||||||
}
|
}
|
||||||
By("wait for the rc to be deleted")
|
By("wait for the rc to be deleted")
|
||||||
// TODO: shorten the timeout when we make GC's periodic API rediscovery more efficient.
|
// TODO: shorten the timeout when we make GC's periodic API rediscovery more efficient.
|
||||||
|
// Tracked at https://github.com/kubernetes/kubernetes/issues/50046.
|
||||||
if err := wait.Poll(5*time.Second, 90*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 {
|
||||||
@ -732,7 +733,9 @@ var _ = SIGDescribe("Garbage collector", func() {
|
|||||||
Expect(err).NotTo(HaveOccurred())
|
Expect(err).NotTo(HaveOccurred())
|
||||||
var pods *v1.PodList
|
var pods *v1.PodList
|
||||||
var err2 error
|
var err2 error
|
||||||
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.
|
||||||
|
// Tracked at https://github.com/kubernetes/kubernetes/issues/50046.
|
||||||
|
if err := wait.Poll(5*time.Second, 90*time.Second, func() (bool, error) {
|
||||||
pods, err2 = podClient.List(metav1.ListOptions{})
|
pods, err2 = podClient.List(metav1.ListOptions{})
|
||||||
if err2 != nil {
|
if err2 != nil {
|
||||||
return false, fmt.Errorf("Failed to list pods: %v", err)
|
return false, fmt.Errorf("Failed to list pods: %v", err)
|
||||||
|
Loading…
Reference in New Issue
Block a user