From 0941fca2e231dfbddc0c4d9afc1ea5340e51c30d Mon Sep 17 00:00:00 2001 From: Peter Vernigorov Date: Sun, 28 Jul 2024 23:17:57 +0200 Subject: [PATCH] minor bug in cumulativetodeltaprocessor test --- processor/cumulativetodeltaprocessor/processor_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/processor/cumulativetodeltaprocessor/processor_test.go b/processor/cumulativetodeltaprocessor/processor_test.go index c2ae37662ce1..53441c254cdf 100644 --- a/processor/cumulativetodeltaprocessor/processor_test.go +++ b/processor/cumulativetodeltaprocessor/processor_test.go @@ -594,7 +594,7 @@ func generateTestHistogramMetrics(tm testHistogramMetric) pmetric.Metrics { if tm.metricMins != nil { mins := tm.metricMins[i] if len(mins) > 0 { - dp.SetMin(sums[index]) + dp.SetMin(mins[index]) } } if tm.metricMaxes != nil {