From 1b3872c9319ebb91213e42a56adc4936105d1464 Mon Sep 17 00:00:00 2001 From: ThreadDao Date: Fri, 19 May 2023 14:23:28 +0800 Subject: [PATCH] Fix compact delete case assert (#24136) Signed-off-by: ThreadDao --- tests/python_client/testcases/test_compaction.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/python_client/testcases/test_compaction.py b/tests/python_client/testcases/test_compaction.py index 401836dd24..b37b578b57 100644 --- a/tests/python_client/testcases/test_compaction.py +++ b/tests/python_client/testcases/test_compaction.py @@ -232,7 +232,7 @@ class TestCompactionParams(TestcaseBase): # delete 20% entities ratio_expr = f'{ct.default_int64_field_name} in {insert_res.primary_keys[:tmp_nb // ct.compact_delta_ratio_reciprocal]}' collection_w.delete(ratio_expr) - assert collection_w.num_entities == tmp_nb + collection_w.flush() # Flush a new segment and meet condition 20% deleted entities, triggre compaction but no way to get plan collection_w.insert(cf.gen_default_dataframe_data(1, start=tmp_nb))