Skip to content

Commit

Permalink
Fix test case
Browse files Browse the repository at this point in the history
  • Loading branch information
ocelotl committed Feb 11, 2022
1 parent deacbd6 commit e4078ac
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions opentelemetry-sdk/tests/metrics/test_aggregation.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,14 @@ def test_collect_cumulative(self):
True, AggregationTemporality.CUMULATIVE
)

synchronous_sum_aggregation.aggregate(Measurement(1))
first_sum = synchronous_sum_aggregation.collect()
sum_aggregation.aggregate(Measurement(1))
first_sum = sum_aggregation.collect()

self.assertEqual(first_sum.value, 1)
self.assertTrue(first_sum.is_monotonic)

synchronous_sum_aggregation.aggregate(Measurement(1))
second_sum = synchronous_sum_aggregation.collect()
sum_aggregation.aggregate(Measurement(1))
second_sum = sum_aggregation.collect()

self.assertEqual(second_sum.value, 2)
self.assertTrue(second_sum.is_monotonic)
Expand Down

0 comments on commit e4078ac

Please sign in to comment.