diff --git a/adapter/adapter.go b/adapter/adapter.go index 6f20c08ab..422232b33 100644 --- a/adapter/adapter.go +++ b/adapter/adapter.go @@ -275,6 +275,11 @@ func (p *Proxy) URLTest(ctx context.Context, url string, expectedStatus utils.In satisfied = resp != nil && (expectedStatus == nil || expectedStatus.Check(uint16(resp.StatusCode))) t = uint16(time.Since(start) / time.Millisecond) + if t == 0 { + // a zero delay means a failed test to callers, so report a test + // that completed in under a millisecond as 1 ms + t = 1 + } return }