diff --git a/prometheus/histogram_test.go b/prometheus/histogram_test.go index f3ee917ea..1a19df2e2 100644 --- a/prometheus/histogram_test.go +++ b/prometheus/histogram_test.go @@ -382,6 +382,7 @@ func TestHistogramAtomicObserve(t *testing.T) { return default: his.Observe(1) + time.Sleep(time.Nanosecond) } } }