Skip to content

Commit 7490fe3

Browse files
committed
.
1 parent 7fb4863 commit 7490fe3

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

tests/integrations/asgi/test_asgi.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -863,18 +863,19 @@ async def test_transaction_name(
863863
},
864864
)
865865

866+
if span_streaming:
867+
items = capture_items("span")
868+
else:
869+
envelopes = capture_envelopes()
870+
866871
app = SentryAsgiMiddleware(asgi3_app, transaction_style=transaction_style)
867872

868873
async with TestClient(app) as client:
869-
if span_streaming:
870-
items = capture_items("span")
871-
else:
872-
envelopes = capture_envelopes()
873874
await client.get(request_url)
874875

875-
sentry_sdk.flush()
876-
877876
if span_streaming:
877+
sentry_sdk.flush()
878+
878879
assert len(items) == 1
879880
span = items[0].payload
880881

0 commit comments

Comments
 (0)