Wait before any request to the ingress controller pod

This commit is contained in:
Manuel Alejandro de Brito Fontes 2020-04-28 18:40:20 -04:00
parent 4179f71cc4
commit b18ea267a8
2 changed files with 5 additions and 0 deletions

View file

@ -110,6 +110,9 @@ func (f *Framework) BeforeEach() {
LabelSelector: "app.kubernetes.io/name=ingress-nginx",
})
assert.Nil(ginkgo.GinkgoT(), err, "waiting for ingress pods to be ready")
// wait before any request
time.Sleep(5 * time.Second)
}
// AfterEach deletes the namespace, after reading its events.

View file

@ -210,6 +210,8 @@ var _ = framework.IngressNginxDescribe("[Lua] dynamic configuration", func() {
err = framework.UpdateDeployment(f.KubeClientSet, f.Namespace, "nginx-ingress-controller", 3, nil)
assert.Nil(ginkgo.GinkgoT(), err)
time.Sleep(1 * time.Second)
output, err = f.ExecIngressPod(curlCmd)
assert.Nil(ginkgo.GinkgoT(), err)
assert.Equal(ginkgo.GinkgoT(), output, `{"controllerPodsCount":3}`)