We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7fb4863 commit 7490fe3Copy full SHA for 7490fe3
tests/integrations/asgi/test_asgi.py
@@ -863,18 +863,19 @@ async def test_transaction_name(
863
},
864
)
865
866
+ if span_streaming:
867
+ items = capture_items("span")
868
+ else:
869
+ envelopes = capture_envelopes()
870
+
871
app = SentryAsgiMiddleware(asgi3_app, transaction_style=transaction_style)
872
873
async with TestClient(app) as client:
- if span_streaming:
- items = capture_items("span")
- else:
- envelopes = capture_envelopes()
874
await client.get(request_url)
875
- sentry_sdk.flush()
876
-
877
if span_streaming:
+ sentry_sdk.flush()
878
879
assert len(items) == 1
880
span = items[0].payload
881
0 commit comments