localupcluster: set readiness polling interval to 1 second

Without an explicit interval, Gomega's default polling is very frequent,
generating a large volume of /readyz and /healthz requests in the component
logs. Set an explicit 1-second interval to reduce noise while still
detecting readiness promptly.
This commit is contained in:
Ed Bartosh
2026-03-22 18:41:51 +02:00
committed by Patrick Ohly
parent 62d05adc8b
commit 1d850e8427

View File

@@ -531,7 +531,7 @@ func (c *Cluster) checkEndpoint(tCtx ktesting.TContext, cmd *Cmd, scheme, hostIP
return fmt.Errorf("%s returned %d, waiting for 200", url, resp.StatusCode)
}
return nil
}).Should(gomega.Succeed(), fmt.Sprintf("HTTP GET %s", url))
}).WithPolling(time.Second).Should(gomega.Succeed(), fmt.Sprintf("HTTP GET %s", url))
}
func dumpProcesses(tCtx ktesting.TContext) {