Skip to content

Commit 726e49b

Browse files
imorphamberpixels
authored andcommitted
fix: add very small delay between observations to make test more realistic (and faster) (prometheus#1691)
Signed-off-by: Eugene <[email protected]>
1 parent 2673892 commit 726e49b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

prometheus/histogram_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,7 @@ func TestHistogramAtomicObserve(t *testing.T) {
382382
return
383383
default:
384384
his.Observe(1)
385+
time.Sleep(time.Nanosecond)
385386
}
386387
}
387388
}

0 commit comments

Comments
 (0)