Skip to content

Commit 8cfe04e

Browse files
committed
remove unused lifespan
1 parent 4695dc0 commit 8cfe04e

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

‎tests/integrations/asgi/test_asgi.py‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -159,15 +159,6 @@ async def app(scope, receive, send):
159159
@pytest.fixture
160160
def asgi3_app_with_span():
161161
async def app(scope, receive, send):
162-
if scope["type"] == "lifespan":
163-
while True:
164-
message = await receive()
165-
if message["type"] == "lifespan.startup":
166-
await send({"type": "lifespan.startup.complete"})
167-
elif message["type"] == "lifespan.shutdown":
168-
await send({"type": "lifespan.shutdown.complete"})
169-
return
170-
171162
with sentry_sdk.traces.start_span(name="child-span"):
172163
pass
173164

0 commit comments

Comments
 (0)