From f6e54b1d3d038504590f31aa7b5ce2f79b41f6c3 Mon Sep 17 00:00:00 2001 From: lihongyan1 Date: Fri, 25 Aug 2023 14:20:21 +0800 Subject: [PATCH] test: enhance TestMonitoringStackController/stack_spec_are_reflected_in_Prometheus --- 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 f507c1a4..30018452 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 {