Skip to content

Commit a190bd1

Browse files
committed
fix test
1 parent 79094b1 commit a190bd1

File tree

1 file changed

+3
-3
lines changed
  • opentelemetry-sdk/src/metrics

1 file changed

+3
-3
lines changed

opentelemetry-sdk/src/metrics/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -374,8 +374,8 @@ mod tests {
374374

375375
#[tokio::test(flavor = "multi_thread", worker_threads = 1)]
376376
async fn counter_aggregation_overflow_cumulative() {
377-
counter_aggregation_overflow_helper(Temporality::Delta);
378-
counter_aggregation_overflow_helper_custom_limit(Temporality::Delta);
377+
counter_aggregation_overflow_helper(Temporality::Cumulative);
378+
counter_aggregation_overflow_helper_custom_limit(Temporality::Cumulative);
379379
}
380380

381381
#[tokio::test(flavor = "multi_thread", worker_threads = 1)]
@@ -2550,7 +2550,7 @@ mod tests {
25502550
assert_eq!(data_point.value, 100);
25512551
} else {
25522552
// For cumulative, overflow should still be there, and new points should not be added.
2553-
assert_eq!(sum.data_points.len(), 2002);
2553+
assert_eq!(sum.data_points.len(), cardinality_limit + 1 + 1);
25542554
let data_point =
25552555
find_sum_datapoint_with_key_value(&sum.data_points, "otel.metric.overflow", "true")
25562556
.expect("overflow point expected");

0 commit comments

Comments
 (0)