Skip to content

Commit

Permalink
Add more verbose logging to 503 edge case
Browse files Browse the repository at this point in the history
Signed-off-by: Yury Tsarev <[email protected]>
  • Loading branch information
ytsarev committed Dec 31, 2023
1 parent f66c081 commit 6c9a11c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions terratest/utils/extensions.go
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,7 @@ func (i *Instance) HitTestApp() (result *TestAppResult) {
for t := 0; t < 60; t++ {
result.Body, err = RunBusyBoxCommand(i.w.t, i.w.k8sOptions, coreDNSIP, command)
if strings.Contains(result.Body, "503") {
i.w.t.Log("podinfo returns 503, trying again....")
time.Sleep(time.Second * 1)
continue
}
Expand Down

0 comments on commit 6c9a11c

Please sign in to comment.