Skip to content

Commit 76b74e2

Browse files
authored
fix: add very small delay between observations to make test more realistic (and faster) (#1691)
1 parent 6a90048 commit 76b74e2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: prometheus/histogram_test.go

+1
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)