hotfix: ut (#512)

* hotfix: ut
This commit is contained in:
naison
2025-04-03 23:00:03 +08:00
committed by GitHub
parent b3d2e1e838
commit dbe9f91ee0
2 changed files with 4 additions and 4 deletions

View File

@@ -129,11 +129,11 @@ func healthChecker(t *testing.T, endpoint string, header map[string]string, keyw
}
err = retry.OnError(
wait.Backoff{Duration: time.Second, Factor: 1, Jitter: 0, Steps: 60},
wait.Backoff{Duration: time.Second, Factor: 1, Jitter: 0, Steps: 120},
func(err error) bool { return err != nil },
func() error {
var resp *http.Response
resp, err = http.DefaultClient.Do(req)
resp, err = (&http.Client{Timeout: time.Second * 5}).Do(req)
if err != nil {
t.Logf("failed to do health check endpoint: %s: %v", endpoint, err)
return err