do not assert on random behaviour
This commit is contained in:
parent
2eb0286c8a
commit
c7de5a5bf6
1 changed files with 0 additions and 17 deletions
|
@ -18,7 +18,6 @@ package lua
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"math/rand"
|
|
||||||
"net/http"
|
"net/http"
|
||||||
"regexp"
|
"regexp"
|
||||||
"strings"
|
"strings"
|
||||||
|
@ -253,22 +252,6 @@ var _ = framework.IngressNginxDescribe("Dynamic Configuration", func() {
|
||||||
newUpstreamName := hostnamePattern.FindAllStringSubmatch(body, -1)[0][1]
|
newUpstreamName := hostnamePattern.FindAllStringSubmatch(body, -1)[0][1]
|
||||||
Expect(newUpstreamName).Should(Equal(upstreamName))
|
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() {
|
Context("when session affinity annotation is present", func() {
|
||||||
|
|
Loading…
Reference in a new issue