Skip to content

Commit

Permalink
fix: Adapt to new list_collection semantics
Browse files Browse the repository at this point in the history
  • Loading branch information
tazarov committed Jan 3, 2025
1 parent 00a7394 commit b53dadb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chromadb/test/property/invariants.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ def log_size_for_collections_match_expected(
@contextmanager
def collection_deleted(client: ClientAPI, collection_name: str):
# Invariant checks before deletion
assert collection_name in [c.name for c in client.list_collections()]
assert collection_name in client.list_collections()
collection = client.get_collection(collection_name)
segments = []
if isinstance(client._server, SegmentAPI): # type: ignore
Expand Down Expand Up @@ -501,7 +501,7 @@ def collection_deleted(client: ClientAPI, collection_name: str):
yield

# Invariant checks after deletion
assert collection_name not in [c.name for c in client.list_collections()]
assert collection_name not in client.list_collections()
if len(segments) > 0:
sysdb: SysDB = client._server._sysdb # type: ignore
segments_after = sysdb.get_segments(collection=collection.id)
Expand Down

0 comments on commit b53dadb

Please sign in to comment.