From 76b74e25d5660965000a74cf2e918c217ed76da2 Mon Sep 17 00:00:00 2001 From: Ivan Goncharov Date: Wed, 20 Nov 2024 14:47:38 +0100 Subject: [PATCH] fix: add very small delay between observations to make test more realistic (and faster) (#1691) --- prometheus/histogram_test.go | 1 + 1 file changed, 1 insertion(+) 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) } } }