Skip to content

Commit

Permalink
increase delta for fastapi flaky test (#2591)
Browse files Browse the repository at this point in the history
  • Loading branch information
emdneto authored Jun 11, 2024
1 parent af9675c commit da78275
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ def test_basic_metric_success(self):
dict(point.attributes),
)
self.assertEqual(point.count, 1)
self.assertAlmostEqual(duration, point.sum, delta=30)
self.assertAlmostEqual(duration, point.sum, delta=40)
if isinstance(point, NumberDataPoint):
self.assertDictEqual(
expected_requests_count_attributes,
Expand All @@ -279,7 +279,7 @@ def test_basic_post_request_metric_success(self):
if isinstance(point, HistogramDataPoint):
self.assertEqual(point.count, 1)
if metric.name == "http.server.duration":
self.assertAlmostEqual(duration, point.sum, delta=30)
self.assertAlmostEqual(duration, point.sum, delta=40)
elif metric.name == "http.server.response.size":
self.assertEqual(response_size, point.sum)
elif metric.name == "http.server.request.size":
Expand Down

0 comments on commit da78275

Please sign in to comment.