Skip to content

Commit

Permalink
fix: add very small delay between observations to make test more real…
Browse files Browse the repository at this point in the history
…istic (and faster)
  • Loading branch information
imorph committed Nov 20, 2024
1 parent 6a90048 commit 5bc3947
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions prometheus/histogram_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@ func TestHistogramAtomicObserve(t *testing.T) {
return
default:
his.Observe(1)
time.Sleep(time.Nanosecond)
}
}
}
Expand Down

0 comments on commit 5bc3947

Please sign in to comment.