mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-03 12:29:36 +08:00
test: update test cases (#35718)
pr: #35640 Signed-off-by: nico <cheng.yuan@zilliz.com>
This commit is contained in:
parent
e25d1ef63c
commit
498c9470de
@ -1401,8 +1401,8 @@ class TestIndexInvalid(TestcaseBase):
|
||||
expected: raise exception
|
||||
"""
|
||||
collection_w = self.init_collection_general(prefix, is_index=False, is_all_data_type=True)[0]
|
||||
scalar_index = ["Trie", "STL_SORT", "INVERTED"]
|
||||
scalar_fields = [ct.default_string_field_name, ct.default_int16_field_name, ct.default_int32_field_name]
|
||||
scalar_index = ["Trie", "STL_SORT"]
|
||||
scalar_fields = [ct.default_string_field_name, ct.default_int16_field_name]
|
||||
for i in range(len(scalar_fields)):
|
||||
index_name = f"scalar_index_name_{i}"
|
||||
scalar_index_params = {"index_type": f"{scalar_index[i]}"}
|
||||
|
@ -2091,7 +2091,7 @@ class TestUpsertInvalid(TestcaseBase):
|
||||
check_task=CheckTasks.err_res, check_items=error)
|
||||
|
||||
@pytest.mark.tags(CaseLabel.L2)
|
||||
@pytest.mark.xfail("insert and upsert have removed the [] error check")
|
||||
@pytest.mark.skip("insert and upsert have removed the [] error check")
|
||||
def test_upsert_multi_partitions(self):
|
||||
"""
|
||||
target: test upsert two partitions
|
||||
|
@ -369,7 +369,8 @@ class TestPartitionParams(TestcaseBase):
|
||||
|
||||
# load with 2 replicas
|
||||
error = {ct.err_code: 65535,
|
||||
ct.err_msg: "failed to load partitions: failed to spawn replica for collection: nodes not enough"}
|
||||
ct.err_msg: "failed to spawn replica for collection: resource group node not enough"
|
||||
"[rg=__default_resource_group][currentNodeNum=2][expectedNodeNum=3]"}
|
||||
collection_w.create_index(ct.default_float_vec_field_name, index_params=ct.default_flat_index)
|
||||
partition_w.load(replica_number=3, check_task=CheckTasks.err_res, check_items=error)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user