Skip to content

Commit

Permalink
[BUG] Shut down test system to hopefully fix test flakiness
Browse files Browse the repository at this point in the history
  • Loading branch information
beggers committed Mar 13, 2024
1 parent 17d427b commit 0e2776c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion chromadb/test/db/test_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ def grpc_with_mock_server() -> Generator[SysDB, None, None]:
system.start()
client.reset_and_wait_for_ready()
yield client
system.stop()


def grpc_with_real_server() -> Generator[SysDB, None, None]:
Expand All @@ -145,7 +146,8 @@ def db_fixtures() -> List[Callable[[], Generator[SysDB, None, None]]]:

@pytest.fixture(scope="module", params=db_fixtures())
def sysdb(request: FixtureRequest) -> Generator[SysDB, None, None]:
yield next(request.param())
sysdb = request.param()
yield next(sysdb)


# region Collection tests
Expand Down

0 comments on commit 0e2776c

Please sign in to comment.