Skip to content

Commit

Permalink
Increased iterations of the health check of the container
Browse files Browse the repository at this point in the history
  • Loading branch information
shivaji-kharse committed Mar 2, 2023
1 parent 1a182e6 commit 0e42e5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testutil/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func (in ContainerInstance) BestEffortWaitForHealthy(privatePort uint16) error {
return nil
}

for i := 0; i < 30; i++ {
for i := 0; i < 60; i++ {
resp, err := http.Get("http://localhost:" + port + "/health")
var body []byte
if resp != nil && resp.Body != nil {
Expand Down Expand Up @@ -116,7 +116,7 @@ func (in ContainerInstance) login() error {
}

func (in ContainerInstance) bestEffortTryLogin() error {
for i := 0; i < 30; i++ {
for i := 0; i < 60; i++ {
err := in.login()
if err == nil {
return nil
Expand Down

0 comments on commit 0e42e5e

Please sign in to comment.