Skip to content

Commit 0a39994

Browse files
test cleanup
1 parent d8001ff commit 0a39994

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

tests/integrations/openai/test_openai.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)