diff --git a/chromadb/test/property/strategies.py b/chromadb/test/property/strategies.py index 3074e68886c..681b2a222e7 100644 --- a/chromadb/test/property/strategies.py +++ b/chromadb/test/property/strategies.py @@ -459,7 +459,7 @@ def recordsets( min_metadata_size: int = 0, max_metadata_size: Optional[int] = None, # ids can only be optional for add operations - for_add: bool = False, + can_ids_be_empty: bool = False, ) -> RecordSet: collection = draw(collection_strategy) ids = list( @@ -467,7 +467,7 @@ def recordsets( ) # This probablistic event is used to mimic user behavior when they don't provide ids - if for_add and np.random.rand() < 0.5: + if can_ids_be_empty and np.random.rand() < 0.5: ids = [] n = len(ids)