Add debug log in pytest fixture (#14764)

Signed-off-by: yanliang567 <yanliang.qiao@zilliz.com>
pull/14789/head
yanliang567 2022-01-04 19:39:23 +08:00 committed by GitHub
parent 71b943993a
commit a398a1eb1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -381,6 +381,7 @@ def collection(request, connect):
def id_collection(request, connect):
ori_collection_name = getattr(request.module, "collection_id", "test")
collection_name = gen_unique_str(ori_collection_name)
log.debug(f'id_collection_name: {collection_name}')
try:
fields = gen_default_fields(auto_id=False)
connect.create_collection(collection_name, fields)