diff --git a/tests/python_client/testcases/test_full_text_search.py b/tests/python_client/testcases/test_full_text_search.py index 4ab6349223efb..46705e01754d6 100644 --- a/tests/python_client/testcases/test_full_text_search.py +++ b/tests/python_client/testcases/test_full_text_search.py @@ -2804,16 +2804,20 @@ def test_full_text_search_with_search_iterator( output_fields=["id", "text", "text_sparse_emb"], limit=limit ) + pages = [] while True: result = iterator.next() if not result: iterator.close() break else: - assert len(result) == batch_size + pages.append(len(result)) + assert len(pages) > 0 + # the latest one may not be full, but others should be full + for d in pages[:-1]: + assert d == batch_size -# @pytest.mark.skip("skip") class TestSearchWithFullTextSearchNegative(TestcaseBase): """ ******************************************************************