mirror of https://github.com/milvus-io/milvus.git
[test]Skip drop operation in teardown method if the collection is alias (#17211)
Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>pull/17214/head
parent
37d7d7baf8
commit
dfce650d78
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue