Skip to content

Commit

Permalink
httpx_issue_979 - Linter issue corrected
Browse files Browse the repository at this point in the history
Signed-off-by: Peri, Suryanarayana <[email protected]>
  • Loading branch information
SuryanarayanaPeri committed Jul 25, 2024
1 parent 6cad17e commit 2352199
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 2352199

Please sign in to comment.