From 6d08d1681f10ec8ea6deec91abc287a5e8671dfb Mon Sep 17 00:00:00 2001 From: Hippie Hacker Date: Wed, 4 Nov 2020 08:50:35 +1300 Subject: [PATCH] Increasing withTimeout for ReplicationController Lifecycle test steps --- test/e2e/apps/rc.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test/e2e/apps/rc.go b/test/e2e/apps/rc.go index d450c7a959e..83f780eed90 100644 --- a/test/e2e/apps/rc.go +++ b/test/e2e/apps/rc.go @@ -150,7 +150,7 @@ var _ = SIGDescribe("ReplicationController", func() { ginkgo.By("waiting for RC to be added") eventFound := false - ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second) + ctx, cancel := context.WithTimeout(context.Background(), 60*time.Second) defer cancel() _, err = watchUntilWithoutRetry(ctx, retryWatcher, func(watchEvent watch.Event) (bool, error) { if watchEvent.Type != watch.Added { @@ -165,7 +165,7 @@ var _ = SIGDescribe("ReplicationController", func() { ginkgo.By("waiting for available Replicas") eventFound = false - ctx, cancel = context.WithTimeout(context.Background(), 30*time.Second) + ctx, cancel = context.WithTimeout(context.Background(), 120*time.Second) defer cancel() _, err = watchUntilWithoutRetry(ctx, retryWatcher, func(watchEvent watch.Event) (bool, error) { var rc *v1.ReplicationController @@ -199,7 +199,7 @@ var _ = SIGDescribe("ReplicationController", func() { framework.ExpectEqual(testRcPatched.ObjectMeta.Labels["test-rc"], "patched", "failed to patch RC") ginkgo.By("waiting for RC to be modified") eventFound = false - ctx, cancel = context.WithTimeout(context.Background(), 30*time.Second) + ctx, cancel = context.WithTimeout(context.Background(), 60*time.Second) defer cancel() _, err = watchUntilWithoutRetry(ctx, retryWatcher, func(watchEvent watch.Event) (bool, error) { if watchEvent.Type != watch.Modified { @@ -227,7 +227,7 @@ var _ = SIGDescribe("ReplicationController", func() { framework.ExpectEqual(rcStatus.Status.ReadyReplicas, int32(0), "ReplicationControllerStatus's readyReplicas does not equal 0") ginkgo.By("waiting for RC to be modified") eventFound = false - ctx, cancel = context.WithTimeout(context.Background(), 30*time.Second) + ctx, cancel = context.WithTimeout(context.Background(), 60*time.Second) defer cancel() _, err = watchUntilWithoutRetry(ctx, retryWatcher, func(watchEvent watch.Event) (bool, error) { if watchEvent.Type != watch.Modified { @@ -281,7 +281,7 @@ var _ = SIGDescribe("ReplicationController", func() { framework.ExpectNoError(err, "Failed to patch ReplicationControllerScale") ginkgo.By("waiting for RC to be modified") eventFound = false - ctx, cancel = context.WithTimeout(context.Background(), 30*time.Second) + ctx, cancel = context.WithTimeout(context.Background(), 60*time.Second) defer cancel() _, err = watchUntilWithoutRetry(ctx, retryWatcher, func(watchEvent watch.Event) (bool, error) { if watchEvent.Type != watch.Modified { @@ -332,7 +332,7 @@ var _ = SIGDescribe("ReplicationController", func() { ginkgo.By("waiting for RC to be modified") eventFound = false - ctx, cancel = context.WithTimeout(context.Background(), 30*time.Second) + ctx, cancel = context.WithTimeout(context.Background(), 60*time.Second) defer cancel() _, err = watchUntilWithoutRetry(ctx, retryWatcher, func(watchEvent watch.Event) (bool, error) { if watchEvent.Type != watch.Modified { @@ -369,7 +369,7 @@ var _ = SIGDescribe("ReplicationController", func() { ginkgo.By("waiting for ReplicationController to have a DELETED watchEvent") eventFound = false - ctx, cancel = context.WithTimeout(context.Background(), 30*time.Second) + ctx, cancel = context.WithTimeout(context.Background(), 60*time.Second) defer cancel() _, err = watchUntilWithoutRetry(ctx, retryWatcher, func(watchEvent watch.Event) (bool, error) { if watchEvent.Type != watch.Deleted {