From 235219979138189a9409d92377d2bd038e32e018 Mon Sep 17 00:00:00 2001 From: "Peri, Suryanarayana" Date: Tue, 23 Jul 2024 16:12:17 +0530 Subject: [PATCH] httpx_issue_979 - Linter issue corrected Signed-off-by: Peri, Suryanarayana --- .../tests/test_httpx_integration.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/instrumentation/opentelemetry-instrumentation-httpx/tests/test_httpx_integration.py b/instrumentation/opentelemetry-instrumentation-httpx/tests/test_httpx_integration.py index 69c2b7f542..31f3926055 100644 --- a/instrumentation/opentelemetry-instrumentation-httpx/tests/test_httpx_integration.py +++ b/instrumentation/opentelemetry-instrumentation-httpx/tests/test_httpx_integration.py @@ -1216,13 +1216,12 @@ def test_basic_multiple(self): self.perform_request(self.URL, client=self.client2) self.assert_span(num_spans=2) - def test_no_op_tracer_provider(self): + async def test_no_op_tracer_provider(self): HTTPXClientInstrumentor().uninstrument() HTTPXClientInstrumentor().instrument( tracer_provider=trace_api.NoOpTracerProvider() ) - async with httpx.AsyncClient() as client: + async with httpx.AsyncClient() as client: await client.get('http://test.com') - spans = self.memory_exporter.get_finished_spans() self.assertEqual(len(spans), 0)