updates dummy health check to ensure positive duration

This commit is contained in:
2025-08-02 11:01:25 -04:00
parent 7c78416948
commit e841e11168

View File

@ -55,7 +55,7 @@ func handleHealthCheckFunc(ctx context.Context, hcFuncs ...opts.HealthCheckFunc)
}
func dummyHealthCheck(ctx context.Context) error {
workFor := rand.Intn(750)
workFor := rand.Intn(740) + 10 // ensure positive
ticker := time.NewTicker(time.Duration(time.Duration(workFor) * time.Millisecond))
select {