Skip to content

Commit

Permalink
test: make scope be session to avoid event loop is closed
Browse files Browse the repository at this point in the history
The app is the same one even the client is created by module
  • Loading branch information
grieve54706 committed Dec 12, 2024
1 parent e8e974c commit 06d8049
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ibis-server/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def file_path(path: str) -> str:
DATAFUSION_FUNCTION_COUNT = 270


@pytest.fixture(scope="module")
@pytest.fixture(scope="session")
async def client() -> AsyncClient:
async with AsyncClient(
transport=ASGITransport(app), base_url="http://test"
Expand Down

0 comments on commit 06d8049

Please sign in to comment.