We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3118a2a commit bbe033cCopy full SHA for bbe033c
services/autoscaling/tests/unit/conftest.py
@@ -378,11 +378,17 @@ def enabled_rabbitmq(
378
return rabbit_service
379
380
381
+_LIFESPAN_TIMEOUT: Final[int] = 10
382
+
383
384
@pytest.fixture
385
async def initialized_app(app_environment: EnvVarsDict) -> AsyncIterator[FastAPI]:
386
settings = ApplicationSettings.create_from_envs()
387
app = create_app(settings)
- async with LifespanManager(app):
388
+ # NOTE: the timeout is sometime too small for CI machines, and even larger machines
389
+ async with LifespanManager(
390
+ app, startup_timeout=_LIFESPAN_TIMEOUT, shutdown_timeout=_LIFESPAN_TIMEOUT
391
+ ):
392
yield app
393
394
0 commit comments