From e841e1116820e39cbef1754c7fe94ad0476a5c6f Mon Sep 17 00:00:00 2001 From: Ryan McGuire Date: Sat, 2 Aug 2025 11:01:25 -0400 Subject: [PATCH] updates dummy health check to ensure positive duration --- pkg/srv/http/http_health.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/srv/http/http_health.go b/pkg/srv/http/http_health.go index aaaadc2..7551205 100644 --- a/pkg/srv/http/http_health.go +++ b/pkg/srv/http/http_health.go @@ -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 {