From a8da23950bbac3f4e991c1d49327d8d7ddb96124 Mon Sep 17 00:00:00 2001 From: Leighton Chen Date: Thu, 25 Jul 2024 15:25:45 -0700 Subject: [PATCH] Remove extra duration check in fastapi test Left behind erroneously from https://github.com/open-telemetry/opentelemetry-python-contrib/pull/2682 --- .../tests/test_fastapi_instrumentation.py | 1 - 1 file changed, 1 deletion(-) diff --git a/instrumentation/opentelemetry-instrumentation-fastapi/tests/test_fastapi_instrumentation.py b/instrumentation/opentelemetry-instrumentation-fastapi/tests/test_fastapi_instrumentation.py index 69c5d312e5..d233331283 100644 --- a/instrumentation/opentelemetry-instrumentation-fastapi/tests/test_fastapi_instrumentation.py +++ b/instrumentation/opentelemetry-instrumentation-fastapi/tests/test_fastapi_instrumentation.py @@ -768,7 +768,6 @@ def test_basic_metric_nonstandard_http_method_success_both_semconv(self): for point in list(metric.data.data_points): if isinstance(point, HistogramDataPoint): self.assertEqual(point.count, 1) - self.assertAlmostEqual(duration, point.sum, delta=40) if metric.name == "http.server.request.duration": self.assertAlmostEqual(duration_s, point.sum, places=1) self.assertDictEqual(