From 3990eade422d34322822dea7eed9273c01dbca2d Mon Sep 17 00:00:00 2001 From: Hammad Bashir Date: Wed, 25 Oct 2023 11:00:44 -0700 Subject: [PATCH] [BUG][TST] Fix bug in tenant state machine test (#1290) ## Description of changes *Summarize the changes made by this PR.* - Improvements & Bug fixes - Fixes a small bug in the tenant/collections state machine to reference the model, not the collection object, since the collection object should only be name placeholder. - New functionality - None ## Test plan *How are these changes tested?* These are tests. - [x] Tests pass locally with `pytest` for python, `yarn test` for js ## Documentation Changes None required. --- chromadb/test/property/test_collections.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chromadb/test/property/test_collections.py b/chromadb/test/property/test_collections.py index a5ba9aef479..1cfaa0db6df 100644 --- a/chromadb/test/property/test_collections.py +++ b/chromadb/test/property/test_collections.py @@ -191,8 +191,8 @@ def modify_coll( c.modify(metadata=new_metadata, name=new_name) return multiple() + self.set_model(new_name, self.model[coll.name]) self.delete_from_model(coll.name) - self.set_model(new_name, coll.metadata) coll.name = new_name c.modify(metadata=new_metadata, name=new_name)