[test]Skip drop operation in teardown method if the collection is alias (#17211)

Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
pull/17214/head
zhuwenxing 2022-05-25 14:16:00 +08:00 committed by GitHub
parent 37d7d7baf8
commit dfce650d78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -54,7 +54,10 @@ class Base:
port=cf.param_info.param_port)
if self.collection_wrap.collection is not None:
self.collection_wrap.drop(check_task=ct.CheckTasks.check_nothing)
if self.collection_wrap.collection.name.startswith("alias"):
log.info(f"collection {self.collection_wrap.collection.name} is alias, skip drop operation")
else:
self.collection_wrap.drop(check_task=ct.CheckTasks.check_nothing)
collection_list = self.utility_wrap.list_collections()[0]
for collection_object in self.collection_object_list: