Skip to content

Commit 7a22b02

Browse files
authored
chore: fix multi-svc-app e2e test by using a better string sep (#5354)
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the Apache 2.0 License.
1 parent 6a3620b commit 7a22b02

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

e2e/multi-svc-app/multi_svc_app_test.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,8 @@ var _ = Describe("Multiple Service App", func() {
249249

250250
routeURL = route.URL
251251
if svcName == "front-end" {
252-
// route.URL is of the form `https://example-alb.elb.us-west-2.amazonaws.com or example-nlb.elb.us-west-2.amazonaws.com, so we split to retrieve just one valid url`
253-
routeURLs := strings.Split(route.URL, "or")
252+
// route.URL is of the form `https://exampleor-alb.elb.us-west-2.amazonaws.com or exampleor-nlb.elb.us-west-2.amazonaws.com, so we split to retrieve just one valid url`
253+
routeURLs := strings.Split(route.URL, " or")
254254
Expect(len(routeURLs)).To(BeNumerically(">", 1))
255255
routeURL = strings.TrimSpace(routeURLs[0])
256256

@@ -335,8 +335,8 @@ var _ = Describe("Multiple Service App", func() {
335335
route := svc.Routes[0]
336336
Expect(route.Environment).To(Equal("test"))
337337

338-
// route.URL is of the form `https://example-alb.elb.us-west-2.amazonaws.com or example-nlb.elb.us-west-2.amazonaws.com, so we split to retrieve just one valid url`
339-
routeURLs := strings.Split(route.URL, "or")
338+
// route.URL is of the form `https://exampleor-alb.elb.us-west-2.amazonaws.com or exampleor-nlb.elb.us-west-2.amazonaws.com, so we split to retrieve just one valid url`
339+
routeURLs := strings.Split(route.URL, " or")
340340
Expect(len(routeURLs)).To(BeNumerically(">", 1))
341341

342342
routeURL = strings.TrimSpace(routeURLs[0])
@@ -413,8 +413,8 @@ var _ = Describe("Multiple Service App", func() {
413413
route := svc.Routes[0]
414414
Expect(route.Environment).To(Equal("test"))
415415

416-
// route.URL is of the form `https://example-alb.elb.us-west-2.amazonaws.com or example-nlb.elb.us-west-2.amazonaws.com, so we split to retrieve just one valid url`
417-
routeURLs := strings.Split(route.URL, "or")
416+
// route.URL is of the form `https://exampleor-alb.elb.us-west-2.amazonaws.com or exampleor-nlb.elb.us-west-2.amazonaws.com, so we split to retrieve just one valid url`
417+
routeURLs := strings.Split(route.URL, " or")
418418
Expect(len(routeURLs)).To(BeNumerically(">", 1))
419419

420420
routeURL = strings.TrimSpace(routeURLs[0])
@@ -467,8 +467,8 @@ var _ = Describe("Multiple Service App", func() {
467467
// Calls the front end's magicwords endpoint
468468
route := svc.Routes[0]
469469

470-
// route.URL is of the form `https://example-alb.elb.us-west-2.amazonaws.com or example-nlb.elb.us-west-2.amazonaws.com, so we split to retrieve just one valid url`
471-
routeURLs := strings.Split(route.URL, "or")
470+
// route.URL is of the form `https://exampleor-alb.elb.us-west-2.amazonaws.com or exampleor-nlb.elb.us-west-2.amazonaws.com, so we split to retrieve just one valid url`
471+
routeURLs := strings.Split(route.URL, " or")
472472
Expect(len(routeURLs)).To(BeNumerically(">", 1))
473473

474474
routeURL = strings.TrimSpace(routeURLs[0])

0 commit comments

Comments
 (0)