diff --git a/test/asynchronous/test_index_management.py b/test/asynchronous/test_index_management.py index ac096ec099..591278414a 100644 --- a/test/asynchronous/test_index_management.py +++ b/test/asynchronous/test_index_management.py @@ -223,7 +223,7 @@ async def test_case_3(self): t0 = time.time() while True: indices = await (await coll0.list_search_indexes()).to_list() - if indices: + if not indices: break if (time.time() - t0) / 60 > 5: raise TimeoutError("Timed out waiting for index deletion") diff --git a/test/test_index_management.py b/test/test_index_management.py index 2d723bb4a3..18552d0640 100644 --- a/test/test_index_management.py +++ b/test/test_index_management.py @@ -223,7 +223,7 @@ def test_case_3(self): t0 = time.time() while True: indices = (coll0.list_search_indexes()).to_list() - if indices: + if not indices: break if (time.time() - t0) / 60 > 5: raise TimeoutError("Timed out waiting for index deletion")