Skip to content

Commit

Permalink
Fix opentelemetry-api tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fcollonval committed Sep 3, 2024
1 parent 1309b61 commit 2780df7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions opentelemetry-api/tests/metrics/test_meter_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,13 +279,13 @@ def test_proxy_meter(self):
real_gauge.assert_not_called()

proxy_counter.add(amount, attributes=attributes)
real_counter.add.assert_called_once_with(amount, attributes)
real_counter.add.assert_called_once_with(amount, attributes, None)
proxy_updowncounter.add(amount, attributes=attributes)
real_updowncounter.add.assert_called_once_with(amount, attributes)
real_updowncounter.add.assert_called_once_with(amount, attributes, None)
proxy_histogram.record(amount, attributes=attributes)
real_histogram.record.assert_called_once_with(amount, attributes)
real_histogram.record.assert_called_once_with(amount, attributes, None)
proxy_gauge.set(amount, attributes=attributes)
real_gauge.set.assert_called_once_with(amount, attributes)
real_gauge.set.assert_called_once_with(amount, attributes, None)

def test_proxy_meter_with_real_meter(self) -> None:
# Creating new instruments on the _ProxyMeter with a real meter set
Expand Down

0 comments on commit 2780df7

Please sign in to comment.