未验证 提交 0549414a 编写于 作者: T ThreadDao 提交者: GitHub

[skip ci] Modify auto-merge case to L2 and increase timeout (#12683)

Signed-off-by: NThreadDao <yufen.zong@zilliz.com>
上级 e8b87400
......@@ -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):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册