File tree Expand file tree Collapse file tree
tests/integrations/openai Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4383,7 +4383,6 @@ def test_error_in_responses_api(
43834383 )
43844384
43854385 # make sure the span where the error occurred is captured
4386- sentry_sdk .flush ()
43874386 spans = [item .payload for item in items if item .type == "span" ]
43884387 assert spans [0 ]["attributes" ]["sentry.op" ] == "gen_ai.responses"
43894388
@@ -4659,7 +4658,6 @@ async def test_ai_client_span_responses_async_api(
46594658 top_p = 0.9 ,
46604659 )
46614660
4662- sentry_sdk .flush ()
46634661 spans = [item .payload for item in items if item .type == "span" ]
46644662
46654663 assert len (spans ) == 1
@@ -5108,7 +5106,6 @@ async def test_error_in_responses_async_api(
51085106 )
51095107
51105108 # make sure the span where the error occurred is captured
5111- sentry_sdk .flush ()
51125109 spans = [item .payload for item in items if item .type == "span" ]
51135110 assert spans [0 ]["attributes" ]["sentry.op" ] == "gen_ai.responses"
51145111
You can’t perform that action at this time.
0 commit comments