1 Commits

Author SHA1 Message Date
e841e11168 updates dummy health check to ensure positive duration 2025-08-02 11:01:25 -04:00

View File

@ -55,7 +55,7 @@ func handleHealthCheckFunc(ctx context.Context, hcFuncs ...opts.HealthCheckFunc)
} }
func dummyHealthCheck(ctx context.Context) error { 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)) ticker := time.NewTicker(time.Duration(time.Duration(workFor) * time.Millisecond))
select { select {