Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
Signed-off-by: emdneto <[email protected]>
  • Loading branch information
emdneto authored and ocelotl committed Aug 21, 2024
1 parent 725bf82 commit 70f3245
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions opentelemetry-sdk/tests/metrics/test_view_instrument_match.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,13 +270,15 @@ def test_collect_resets_start_time_unix_nano(self, mock_time_ns):
collected_data_points = view_instrument_match.collect(
AggregationTemporality.CUMULATIVE, collection_start_time_unix_nano
)
# # +1 call to create_aggregation
# +1 call to create_aggregation
view_instrument_match.consume_measurement(
Measurement(
value=0, instrument=instrument, attributes={"foo": "bar"}
)
)

view_instrument_match._view._aggregation._create_aggregation.assert_called_with(
instrument, {"foo": "bar"}, 2
)
# No new calls to _create_aggregation because attributes remain the same
view_instrument_match.consume_measurement(
Measurement(
Expand Down

0 comments on commit 70f3245

Please sign in to comment.