Modify test cases (#24001)

Signed-off-by: nico <cheng.yuan@zilliz.com>
This commit is contained in:
nico 2023-05-10 19:43:20 +08:00 committed by GitHub
parent 0caa94e91a
commit 0c99399f35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -2562,7 +2562,7 @@ class TestLoadCollection(TestcaseBase):
replicas = collection_w.get_replicas()[0]
groups = replicas.groups
assert len(groups) == 1
assert len(groups[0].shards) == 2
assert len(groups[0].shards) == 1
@pytest.mark.tags(CaseLabel.L2)
@pytest.mark.parametrize("replicas", [None])

View File

@ -507,7 +507,7 @@ class TestCompactionOperation(TestcaseBase):
3.Compact and wait it completed
expected: Verify there are 2 merge type complation plans
"""
collection_w = self.init_collection_wrap(cf.gen_unique_str(prefix))
collection_w = self.init_collection_wrap(cf.gen_unique_str(prefix), shards_num=2)
for i in range(2):
df = cf.gen_default_dataframe_data(2 * tmp_nb)
insert_res, _ = collection_w.insert(df)

View File

@ -1150,7 +1150,7 @@ class TestNewIndexBinary(TestcaseBase):
binary_index_params = {'index_type': 'BIN_IVF_FLAT', 'metric_type': 'L2', 'params': {'nlist': 64}}
collection_w.create_index(default_binary_vec_field_name, binary_index_params,
index_name=binary_field_name, check_task=CheckTasks.err_res,
check_items={ct.err_code: 0,
check_items={ct.err_code: 1,
ct.err_msg: "Invalid metric_type: L2, which does not match the index type: BIN_IVF_FLAT"})
"""