Skip to content

Commit 27f90ff

Browse files
authored
PYTHON-5852 Fix inverted polling condition in TestSearchIndexProse test_case_3 (#2843)
1 parent ed1ddb6 commit 27f90ff

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

test/asynchronous/test_index_management.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ async def test_case_3(self):
223223
t0 = time.time()
224224
while True:
225225
indices = await (await coll0.list_search_indexes()).to_list()
226-
if indices:
226+
if not indices:
227227
break
228228
if (time.time() - t0) / 60 > 5:
229229
raise TimeoutError("Timed out waiting for index deletion")

test/test_index_management.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ def test_case_3(self):
223223
t0 = time.time()
224224
while True:
225225
indices = (coll0.list_search_indexes()).to_list()
226-
if indices:
226+
if not indices:
227227
break
228228
if (time.time() - t0) / 60 > 5:
229229
raise TimeoutError("Timed out waiting for index deletion")

0 commit comments

Comments
 (0)