From a41508123215c9bb5e8cc0f83bac17456e160761 Mon Sep 17 00:00:00 2001 From: Liangquan Li Date: Tue, 30 Apr 2024 16:57:34 +0800 Subject: [PATCH] Adjust the method of get the apiServer. --- test/extended/cli/builds.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/extended/cli/builds.go b/test/extended/cli/builds.go index d6b3200cbae4..78d6d34e3498 100644 --- a/test/extended/cli/builds.go +++ b/test/extended/cli/builds.go @@ -207,7 +207,7 @@ var _ = g.Describe("[sig-cli] oc builds", func() { out, err := oc.WithoutNamespace().Run("--namespace=default", "status").Args().Output() o.Expect(err).NotTo(o.HaveOccurred()) e2e.Logf("got status value of: %s", out) - matcher := regexp.MustCompile("https?://.*?443") + matcher := regexp.MustCompile(`https?://.*?:\d+`) apiServer = matcher.FindString(out) o.Expect(apiServer).NotTo(o.BeEmpty())