mirror of
https://github.com/prometheus/prometheus.git
synced 2026-05-28 04:02:21 -04:00
Update scrape/manager_test.go
Co-authored-by: George Krajcsovits <krajorama@users.noreply.github.com> Signed-off-by: harsh kumar <135993950+hxrshxz@users.noreply.github.com>
This commit is contained in:
parent
a1e163a462
commit
5244b0e3f7
1 changed files with 1 additions and 3 deletions
|
|
@ -1175,9 +1175,7 @@ scrape_configs:
|
|||
require.Equal(t, histogram.Histogram{}, *got[0].h, "first sample should be zero sample")
|
||||
require.InDelta(t, expectedHistogramSum, got[1].h.Sum, 1e-9, "second sample should retain the expected sum")
|
||||
|
||||
// Note: Exemplars from classic histogram buckets are not preserved when converting to NHCB
|
||||
// because the bucket series are replaced with a single native histogram sample. This is expected
|
||||
// behavior. The test verifies that the presence of exemplars in the input doesn't cause errors.
|
||||
require.Len(t, app.resultExemplars, 2, "expected 2 exemplars from histogram buckets")
|
||||
|
||||
// The test successfully completes, proving that both ConvertClassicHistogramsToNHCBEnabled
|
||||
// and EnableCreatedTimestampZeroIngestion can work together without the error that was
|
||||
|
|
|
|||
Loading…
Reference in a new issue