From 39ebd6cbfeddc5a213cd845f53f704119ba6554a Mon Sep 17 00:00:00 2001 From: lihongyan1 Date: Thu, 31 Aug 2023 11:33:13 +0800 Subject: [PATCH] test: enhance TestMonitoringStackController/stack_spec_are_reflected_in_Prometheus (#348) --- test/e2e/framework/assertions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/framework/assertions.go b/test/e2e/framework/assertions.go index f507c1a4d..30018452e 100644 --- a/test/e2e/framework/assertions.go +++ b/test/e2e/framework/assertions.go @@ -269,7 +269,7 @@ func (f *Framework) GetStackWhenAvailable(t *testing.T, name, namespace string) } var lastErr error - err := wait.PollUntilContextTimeout(context.Background(), 5*time.Second, DefaultTestTimeout, true, func(ctx context.Context) (bool, error) { + err := wait.PollUntilContextTimeout(context.Background(), 5*time.Second, DefaultTestTimeout+10*time.Second, true, func(ctx context.Context) (bool, error) { lastErr = nil err := f.K8sClient.Get(context.Background(), key, &ms) if err != nil {