Skip to content

Commit

Permalink
Wait before any request to the ingress controller pod
Browse files Browse the repository at this point in the history
  • Loading branch information
aledbf committed May 14, 2020
1 parent 4179f71 commit b18ea26
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/e2e/framework/framework.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 2 additions & 0 deletions test/e2e/lua/dynamic_configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -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}`)
Expand Down

0 comments on commit b18ea26

Please sign in to comment.