From c7de5a5bf678f94d5e7b6d07219c76796c807879 Mon Sep 17 00:00:00 2001 From: Elvin Efendi Date: Wed, 16 May 2018 19:19:38 -0400 Subject: [PATCH] do not assert on random behaviour --- test/e2e/lua/dynamic_configuration.go | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/test/e2e/lua/dynamic_configuration.go b/test/e2e/lua/dynamic_configuration.go index 2eccb6ea4f..e4cbda1547 100644 --- a/test/e2e/lua/dynamic_configuration.go +++ b/test/e2e/lua/dynamic_configuration.go @@ -18,7 +18,6 @@ package lua import ( "fmt" - "math/rand" "net/http" "regexp" "strings" @@ -253,22 +252,6 @@ var _ = framework.IngressNginxDescribe("Dynamic Configuration", func() { newUpstreamName := hostnamePattern.FindAllStringSubmatch(body, -1)[0][1] Expect(newUpstreamName).Should(Equal(upstreamName)) } - - notEqualFound := false - for i := 0; i < 5; i++ { - resp, body, errs = gorequest.New(). - Get(fmt.Sprintf("%s?completely-different-path=%f", f.IngressController.HTTPURL, rand.Float64())). - Set("Host", "foo.com"). - End() - Expect(len(errs)).Should(Equal(0)) - Expect(resp.StatusCode).Should(Equal(http.StatusOK)) - anotherUpstreamName := hostnamePattern.FindAllStringSubmatch(body, -1)[0][1] - notEqualFound = anotherUpstreamName != upstreamName - if notEqualFound { - break - } - } - Expect(notEqualFound).Should(Equal(true)) }) Context("when session affinity annotation is present", func() {