未验证 提交 defc7684 编写于 作者: B binbin 提交者: GitHub

Update test cases for code fix (#18037)

Signed-off-by: NBinbin Lv <binbin.lv@zilliz.com>
上级 1fd3ded8
...@@ -1084,7 +1084,7 @@ class TestCollectionOperation(TestcaseBase): ...@@ -1084,7 +1084,7 @@ class TestCollectionOperation(TestcaseBase):
partition_w1 = self.init_partition_wrap(collection_w) partition_w1 = self.init_partition_wrap(collection_w)
partition_w1.insert(cf.gen_default_list_data()) partition_w1.insert(cf.gen_default_list_data())
collection_w.load() collection_w.load()
error = {ct.err_code: 1, ct.err_msg: f'load the partition after load collection is not supported'} error = {ct.err_code: 5, ct.err_msg: f'load the partition after load collection is not supported'}
partition_w1.load(check_task=CheckTasks.err_res, partition_w1.load(check_task=CheckTasks.err_res,
check_items=error) check_items=error)
......
...@@ -931,7 +931,7 @@ class TestCompactionOperation(TestcaseBase): ...@@ -931,7 +931,7 @@ class TestCompactionOperation(TestcaseBase):
collection_w = self.collection_insert_multi_segments_one_shard(prefix, num_of_segment=threshold) collection_w = self.collection_insert_multi_segments_one_shard(prefix, num_of_segment=threshold)
# Estimated auto-merging takes 30s # Estimated auto-merging takes 30s
cost = 60 cost = 120
collection_w.load() collection_w.load()
replicas = collection_w.get_replicas()[0] replicas = collection_w.get_replicas()[0]
replica_num = len(replicas.groups) replica_num = len(replicas.groups)
...@@ -1158,7 +1158,7 @@ class TestCompactionOperation(TestcaseBase): ...@@ -1158,7 +1158,7 @@ class TestCompactionOperation(TestcaseBase):
t = threading.Thread(target=do_index, args=()) t = threading.Thread(target=do_index, args=())
t.start() t.start()
collection_w.compact() collection_w.compact()
collection_w.wait_for_compaction_completed(timeout=90) collection_w.wait_for_compaction_completed(timeout=180)
collection_w.get_compaction_plans() collection_w.get_compaction_plans()
t.join() t.join()
......
...@@ -249,7 +249,7 @@ class TestPartitionParams(TestcaseBase): ...@@ -249,7 +249,7 @@ class TestPartitionParams(TestcaseBase):
partition_w1.insert(cf.gen_default_list_data()) partition_w1.insert(cf.gen_default_list_data())
partition_w2.insert(cf.gen_default_list_data()) partition_w2.insert(cf.gen_default_list_data())
partition_w1.load() partition_w1.load()
error = {ct.err_code: 1, ct.err_msg: f'load the partition after load collection is not supported'} error = {ct.err_code: 5, ct.err_msg: f'load the partition after load collection is not supported'}
partition_w2.load(check_task=CheckTasks.err_res, partition_w2.load(check_task=CheckTasks.err_res,
check_items=error) check_items=error)
......
...@@ -275,7 +275,6 @@ class TestCollectionSearchInvalid(TestcaseBase): ...@@ -275,7 +275,6 @@ class TestCollectionSearchInvalid(TestcaseBase):
% invalid_search_field}) % invalid_search_field})
@pytest.mark.tags(CaseLabel.L1) @pytest.mark.tags(CaseLabel.L1)
@pytest.mark.xfail(reason="issue 17935")
def test_search_param_invalid_metric_type(self, get_invalid_metric_type): def test_search_param_invalid_metric_type(self, get_invalid_metric_type):
""" """
target: test search with invalid parameter values target: test search with invalid parameter values
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册