From aa04787f322acd72078d2256d00a6b1ff978a50f Mon Sep 17 00:00:00 2001 From: zhuwenxing Date: Tue, 15 Nov 2022 19:23:08 +0800 Subject: [PATCH] [skip e2e]Add compact before verification (#20618) Signed-off-by: zhuwenxing Signed-off-by: zhuwenxing --- .../chaos/testcases/test_all_collections_after_chaos.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/python_client/chaos/testcases/test_all_collections_after_chaos.py b/tests/python_client/chaos/testcases/test_all_collections_after_chaos.py index 949fc3ae98..022f9a8474 100644 --- a/tests/python_client/chaos/testcases/test_all_collections_after_chaos.py +++ b/tests/python_client/chaos/testcases/test_all_collections_after_chaos.py @@ -31,6 +31,10 @@ class TestAllCollection(TestcaseBase): collection_w = self.init_collection_wrap(name=name, active_trace=True) tt = time.time() - t0 assert collection_w.name == name + # compact collection before getting num_entities + collection_w.compact() + collection_w.wait_for_compaction_completed() + entities = collection_w.num_entities log.info(f"assert create collection: {tt}, init_entities: {entities}")