Update test cases for code fix (#18037)

Signed-off-by: Binbin Lv <binbin.lv@zilliz.com>
This commit is contained in:
binbin 2022-07-04 19:58:23 +08:00 committed by GitHub
parent 1fd3ded815
commit defc768441
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 5 deletions

View File

@ -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)

View File

@ -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):
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()

View File

@ -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)

View File

@ -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