Skip to content

Commit

Permalink
increaase timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderegg committed Sep 19, 2024
1 parent 2d9b910 commit 44fa24e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion services/autoscaling/tests/unit/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,11 +378,17 @@ def enabled_rabbitmq(
return rabbit_service


_LIFESPAN_TIMEOUT: Final[int] = 10


@pytest.fixture
async def initialized_app(app_environment: EnvVarsDict) -> AsyncIterator[FastAPI]:
settings = ApplicationSettings.create_from_envs()
app = create_app(settings)
async with LifespanManager(app):
# NOTE: the timeout is sometime too small for CI machines, and even larger machines
async with LifespanManager(
app, startup_timeout=_LIFESPAN_TIMEOUT, shutdown_timeout=_LIFESPAN_TIMEOUT
):
yield app


Expand Down

0 comments on commit 44fa24e

Please sign in to comment.