From 7fd47102405cb5d52f0058a3c4c6c0946bc5814b Mon Sep 17 00:00:00 2001 From: NicoYuan1986 <109071306+NicoYuan1986@users.noreply.github.com> Date: Tue, 18 Oct 2022 18:47:31 +0800 Subject: [PATCH] Modify according cases because load needs index now (#19860) Signed-off-by: nico Signed-off-by: nico --- tests/python_client/testcases/test_utility.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/python_client/testcases/test_utility.py b/tests/python_client/testcases/test_utility.py index 965cd5d087..23c1640725 100644 --- a/tests/python_client/testcases/test_utility.py +++ b/tests/python_client/testcases/test_utility.py @@ -918,6 +918,8 @@ class TestUtilityBase(TestcaseBase): collection_w = self.init_collection_wrap() collection_w.insert(cf.gen_default_dataframe_data()) assert collection_w.num_entities == ct.default_nb + default_index = {"index_type": "IVF_FLAT", "params": {"nlist": 128}, "metric_type": "L2"} + collection_w.create_index("float_vector", default_index) collection_w.load(partition_names=[ct.default_partition_name], replica_number=2) res_collection, _ = self.utility_wrap.loading_progress(collection_w.name) assert res_collection == {loading_progress: '100%'}