Skip to content

Commit 383c511

Browse files
🐛 Fix Celery app server mock (#7989)
1 parent 6041cec commit 383c511

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/celery-library/tests/conftest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232

3333
class FakeAppServer(BaseAppServer):
3434
async def lifespan(self, startup_completed_event: threading.Event) -> None:
35-
pass
35+
startup_completed_event.set()
36+
await self.shutdown_event.wait() # wait for shutdown
3637

3738

3839
@pytest.fixture

0 commit comments

Comments
 (0)