updated the error message and test_registry

This commit is contained in:
Omar Abdelwahab 2025-09-30 17:12:43 -07:00
parent 5943ce404b
commit 2d4775c67a
2 changed files with 3 additions and 2 deletions

View file

@ -136,7 +136,8 @@ async def test_duplicate_provider_registration(cached_disk_dist_registry):
# Now we expect a ValueError to be raised for duplicate registration
with pytest.raises(
ValueError, match=r"Vector_db.*already registered.*provider.*baz.*"
ValueError,
match=r"Vector_Db.*already registered.*provider.*baz.*Unregister the existing",
):
await cached_disk_dist_registry.register(duplicate_vector_db)