From fea0b9765b4479c79c61bd841bd3be4a7f2b5df0 Mon Sep 17 00:00:00 2001 From: Ruixian Song Date: Tue, 19 Nov 2024 16:18:14 -0800 Subject: [PATCH] Extend the timeout for CDN tests from 15 min to 30 min --- cmd/e2e-test/cdn_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmd/e2e-test/cdn_test.go b/cmd/e2e-test/cdn_test.go index bd56eb3066..3dcf12b4de 100644 --- a/cmd/e2e-test/cdn_test.go +++ b/cmd/e2e-test/cdn_test.go @@ -22,6 +22,7 @@ import ( "fmt" "reflect" "testing" + "time" "github.com/kr/pretty" "google.golang.org/api/compute/v1" @@ -37,6 +38,8 @@ import ( "k8s.io/klog/v2" ) +const cdnTestPollTimeout = 30 * time.Minute + // TestCDN is for ingress versions before the CDN config was expanded func TestCDN(t *testing.T) { t.Parallel() @@ -961,7 +964,7 @@ func updateConfigAndValidate( // wait and validate the changes var lastError error - waitErr := wait.Poll(transitionPollInterval, transitionPollTimeout, func() (bool, error) { + waitErr := wait.Poll(transitionPollInterval, cdnTestPollTimeout, func() (bool, error) { lastError = validateBackend(ing, namespace, serviceName, expected) if lastError == nil { return true, nil