Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def sorted_metrics(metrics):
def assert_metric_expected(
self, metric, expected_value, expected_attributes
):
data_point = next(metric.data.data_points)
data_point = next(iter(metric.data.data_points))

if isinstance(data_point, HistogramDataPoint):
self.assertEqual(
Expand All @@ -78,7 +78,7 @@ def assert_metric_expected(
def assert_duration_metric_expected(
self, metric, duration_estimated, expected_attributes
):
data_point = next(metric.data.data_points)
data_point = next(iter(metric.data.data_points))

self.assertAlmostEqual(
data_point.sum,
Expand Down