Skip to content

Commit

Permalink
Merge pull request #28762 from openshift-cherrypick-robot/cherry-pick…
Browse files Browse the repository at this point in the history
…-28756-to-release-4.15

OCPBUGS-33541: Adjust the method of get the apiServer (release-4.15)
  • Loading branch information
openshift-merge-bot[bot] committed May 10, 2024
2 parents 7f338d9 + 4880ef5 commit 68c42c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/extended/cli/builds.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())

Expand Down

0 comments on commit 68c42c1

Please sign in to comment.