mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
parent
0caa94e91a
commit
0c99399f35
@ -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])
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -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"})
|
||||
|
||||
"""
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user