From 0549414a1b43ff5dc7f3ac88bd454f72fe6244ab Mon Sep 17 00:00:00 2001 From: ThreadDao Date: Fri, 3 Dec 2021 13:37:55 +0800 Subject: [PATCH] [skip ci] Modify auto-merge case to L2 and increase timeout (#12683) Signed-off-by: ThreadDao --- tests/python_client/testcases/test_compaction.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/python_client/testcases/test_compaction.py b/tests/python_client/testcases/test_compaction.py index 4745dd042..9b10912ef 100644 --- a/tests/python_client/testcases/test_compaction.py +++ b/tests/python_client/testcases/test_compaction.py @@ -722,7 +722,7 @@ class TestCompactionOperation(TestcaseBase): assert tmp_nb in search_res[0].ids assert len(search_res[0]) == ct.default_limit - @pytest.mark.tags(CaseLabel.L1) + @pytest.mark.tags(CaseLabel.L2) def test_compact_threshold_auto_merge(self): """ target: test num (segment_size < 1/2Max) reaches auto-merge threshold 10 @@ -737,7 +737,7 @@ class TestCompactionOperation(TestcaseBase): collection_w = self.collection_insert_multi_segments_one_shard(prefix, num_of_segment=threshold) # Estimated auto-merging takes 30s - cost = 30 + cost = 60 collection_w.load() start = time() while True: @@ -749,7 +749,7 @@ class TestCompactionOperation(TestcaseBase): break end = time() if end - start > cost: - raise BaseException(1, "Ccompact auto-merge more than 30s") + raise BaseException(1, "Ccompact auto-merge more than 60s") @pytest.mark.tags(CaseLabel.L2) def test_compact_less_threshold_no_merge(self): -- GitLab