mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-07 09:38:39 +08:00
Update test cases for code fix (#18037)
Signed-off-by: Binbin Lv <binbin.lv@zilliz.com>
This commit is contained in:
parent
1fd3ded815
commit
defc768441
@ -1084,7 +1084,7 @@ class TestCollectionOperation(TestcaseBase):
|
||||
partition_w1 = self.init_partition_wrap(collection_w)
|
||||
partition_w1.insert(cf.gen_default_list_data())
|
||||
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,
|
||||
check_items=error)
|
||||
|
||||
|
||||
@ -931,7 +931,7 @@ class TestCompactionOperation(TestcaseBase):
|
||||
collection_w = self.collection_insert_multi_segments_one_shard(prefix, num_of_segment=threshold)
|
||||
|
||||
# Estimated auto-merging takes 30s
|
||||
cost = 60
|
||||
cost = 120
|
||||
collection_w.load()
|
||||
replicas = collection_w.get_replicas()[0]
|
||||
replica_num = len(replicas.groups)
|
||||
@ -1158,7 +1158,7 @@ class TestCompactionOperation(TestcaseBase):
|
||||
t = threading.Thread(target=do_index, args=())
|
||||
t.start()
|
||||
collection_w.compact()
|
||||
collection_w.wait_for_compaction_completed(timeout=90)
|
||||
collection_w.wait_for_compaction_completed(timeout=180)
|
||||
collection_w.get_compaction_plans()
|
||||
|
||||
t.join()
|
||||
|
||||
@ -249,7 +249,7 @@ class TestPartitionParams(TestcaseBase):
|
||||
partition_w1.insert(cf.gen_default_list_data())
|
||||
partition_w2.insert(cf.gen_default_list_data())
|
||||
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,
|
||||
check_items=error)
|
||||
|
||||
|
||||
@ -275,7 +275,6 @@ class TestCollectionSearchInvalid(TestcaseBase):
|
||||
% invalid_search_field})
|
||||
|
||||
@pytest.mark.tags(CaseLabel.L1)
|
||||
@pytest.mark.xfail(reason="issue 17935")
|
||||
def test_search_param_invalid_metric_type(self, get_invalid_metric_type):
|
||||
"""
|
||||
target: test search with invalid parameter values
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user