[test]Change steps of testcase (#20089)

Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>

Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
This commit is contained in:
zhuwenxing 2022-10-26 15:15:31 +08:00 committed by GitHub
parent 27ebb766e7
commit 5378e03372
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1672,13 +1672,13 @@ class TestUtilityAdvanced(TestcaseBase):
# init a collection
c_name = cf.gen_unique_str(prefix)
collection_w = self.init_collection_wrap(name=c_name)
collection_w.create_index(default_field_name, default_index_params)
ms = MilvusSys()
nb = 3000
df = cf.gen_default_dataframe_data(nb)
collection_w.insert(df)
# get sealed segments
collection_w.num_entities
collection_w.create_index(default_field_name, default_index_params)
# get growing segments
collection_w.insert(df)
collection_w.load()