Skip to content

Commit ccfc5a1

Browse files
committed
work
1 parent 10cb05f commit ccfc5a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/integrations/asgi/test_asgi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,11 +165,11 @@ async def test_capture_transaction_with_error(
165165
DictionaryContaining, # noqa: N803
166166
):
167167
sentry_init(send_default_pii=True, traces_sample_rate=1.0)
168-
events = capture_events()
169168
app = SentryAsgiMiddleware(asgi3_app_with_error)
170169

171170
with pytest.raises(ZeroDivisionError):
172171
async with TestClient(app) as client:
172+
events = capture_events()
173173
await client.get("/")
174174

175175
(error_event, transaction_event) = events
@@ -419,8 +419,8 @@ async def test_transaction_style(
419419
"client": ("127.0.0.1", 60457),
420420
}
421421

422-
events = capture_events()
423422
async with TestClient(app, scope=scope) as client:
423+
events = capture_events()
424424
await client.get(url)
425425

426426
(_, transaction_event) = events

0 commit comments

Comments
 (0)