Skip to content

Commit 44fa24e

Browse files
committed
increaase timeout
1 parent 2d9b910 commit 44fa24e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

services/autoscaling/tests/unit/conftest.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,11 +378,17 @@ def enabled_rabbitmq(
378378
return rabbit_service
379379

380380

381+
_LIFESPAN_TIMEOUT: Final[int] = 10
382+
383+
381384
@pytest.fixture
382385
async def initialized_app(app_environment: EnvVarsDict) -> AsyncIterator[FastAPI]:
383386
settings = ApplicationSettings.create_from_envs()
384387
app = create_app(settings)
385-
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+
):
386392
yield app
387393

388394

0 commit comments

Comments
 (0)