diff --git a/tests/python_client/testcases/test_collection.py b/tests/python_client/testcases/test_collection.py index dd0f7d96b9..cf471d8bad 100644 --- a/tests/python_client/testcases/test_collection.py +++ b/tests/python_client/testcases/test_collection.py @@ -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]) diff --git a/tests/python_client/testcases/test_compaction.py b/tests/python_client/testcases/test_compaction.py index 2d17b6297b..401836dd24 100644 --- a/tests/python_client/testcases/test_compaction.py +++ b/tests/python_client/testcases/test_compaction.py @@ -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) diff --git a/tests/python_client/testcases/test_index.py b/tests/python_client/testcases/test_index.py index ddab674701..e6ddc2a42e 100644 --- a/tests/python_client/testcases/test_index.py +++ b/tests/python_client/testcases/test_index.py @@ -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"}) """