diff --git a/test/asynchronous/test_index_management.py b/test/asynchronous/test_index_management.py index 59ce89e686..4b2a9c813b 100644 --- a/test/asynchronous/test_index_management.py +++ b/test/asynchronous/test_index_management.py @@ -213,7 +213,6 @@ async def test_case_3(self): # Create a new search index on ``self.coll0``. model = {"name": _NAME, "definition": {"mappings": {"dynamic": False}}} resp = await self.coll0.create_search_index(model) - self.addAsyncCleanup(self.drop_and_wait, self.coll0, _NAME) # Assert that the command returns the name of the index: ``"test-search-index"``. self.assertEqual(resp, "test-search-index") diff --git a/test/test_index_management.py b/test/test_index_management.py index 557f9ab93d..9d36ea0416 100644 --- a/test/test_index_management.py +++ b/test/test_index_management.py @@ -211,7 +211,6 @@ def test_case_3(self): # Create a new search index on ``self.coll0``. model = {"name": _NAME, "definition": {"mappings": {"dynamic": False}}} resp = self.coll0.create_search_index(model) - self.addCleanup(self.drop_and_wait, self.coll0, _NAME) # Assert that the command returns the name of the index: ``"test-search-index"``. self.assertEqual(resp, "test-search-index")