From 177d0351ecb249f4dbfebe5491acb66ca060cc73 Mon Sep 17 00:00:00 2001 From: aoiasd <45024769+aoiasd@users.noreply.github.com> Date: Thu, 19 Oct 2023 07:18:16 +0800 Subject: [PATCH] fix unstable unit test of delete (#27738) Signed-off-by: aoiasd --- tests/python_client/testcases/test_delete.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/python_client/testcases/test_delete.py b/tests/python_client/testcases/test_delete.py index 80ec382efe..3fbcc8dcff 100644 --- a/tests/python_client/testcases/test_delete.py +++ b/tests/python_client/testcases/test_delete.py @@ -1840,6 +1840,7 @@ class TestDeleteString(TestcaseBase): df[2] = [""for _ in range(nb)] collection_w.insert(df) + collection_w.flush() collection_w.create_index(ct.default_float_vec_field_name, index_params=ct.default_flat_index) collection_w.load() assert collection_w.num_entities == nb @@ -1992,6 +1993,7 @@ class TestDeleteComplexExpr(TestcaseBase): data = cf.gen_default_dataframe_data() data[ct.default_json_field_name] = [{"list": listMix[i]} for i in range(ct.default_nb)] collection_w.insert(data) + collection_w.flush() collection_w.load() # delete with expressions @@ -2031,6 +2033,7 @@ class TestDeleteComplexExpr(TestcaseBase): data = cf.gen_default_dataframe_data() data[ct.default_json_field_name] = [{"list": listMix[i]} for i in range(ct.default_nb)] collection_w.insert(data) + collection_w.flush() collection_w.load() # delete with expressions @@ -2074,6 +2077,7 @@ class TestDeleteComplexExpr(TestcaseBase): "float_vector": vectors }) collection_w.insert(data) + collection_w.flush() collection_w.create_index("float_vector") collection_w.load()