Skip to content

Commit

Permalink
Merge branch 'main' into add_attributes_for_instrumentation_scope
Browse files Browse the repository at this point in the history
  • Loading branch information
lalitb authored Mar 2, 2023
2 parents 1b1bb79 + 075f45d commit 938747d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions exporters/prometheus/test/exporter_utils_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ void assert_histogram(prometheus_client::MetricFamily &metric,
int cumulative_count = 0;
auto buckets = metric.metric[0].histogram.bucket;
auto boundary_it = boundaries.cbegin();
for (size_t i = 0; i < buckets.size(); i++, ++boundary_it)
for (size_t i = 0; i < buckets.size(); i++)
{
auto bucket = buckets[i];
if (i != buckets.size() - 1)
{
ASSERT_DOUBLE_EQ(*boundary_it, bucket.upper_bound);
ASSERT_DOUBLE_EQ(*boundary_it++, bucket.upper_bound);
}
else
{
Expand Down

0 comments on commit 938747d

Please sign in to comment.