Skip to content

Commit ca84f29

Browse files
committed
address feedback
1 parent a009075 commit ca84f29

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ async def lifespan(
3737
) -> AsyncIterator[None]:
3838
"""Manage application lifespan - startup and shutdown events."""
3939
yield
40-
asyncio.gather(
40+
await asyncio.gather(
4141
logger.complete(),
4242
close_databases(),
4343
)

tests/conftest.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,9 @@ async def override_userdb() -> AsyncIterator[AsyncConnection]:
109109
) as client:
110110
yield client
111111

112+
app.dependency_overrides[expdb_connection] = expdb_connection
113+
app.dependency_overrides[userdb_connection] = userdb_connection
114+
112115

113116
@pytest.fixture
114117
def dataset_130() -> Iterator[dict[str, Any]]:

0 commit comments

Comments
 (0)