[test]Update the way to get collections of deploy test (#23077)

Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
pull/23096/head
zhuwenxing 2023-03-29 10:54:01 +08:00 committed by GitHub
parent 0d0dc95f9d
commit c9ac005257
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ def gen_search_param(index_type, metric_type="L2"):
def get_collections():
try:
with open("/tmp/ci_logs/all_collections.json", "r") as f:
with open("/tmp/ci_logs/deploy_test_all_collections.json", "r") as f:
data = json.load(f)
collections = data["all"]
except Exception as e:

View File

@ -22,6 +22,6 @@ class TestGetCollections(TestcaseBase):
}
with open("/tmp/ci_logs/all_collections.json", "w") as f:
f.write(json.dumps(data))
log.info(f"write {len(all_collections)} collections to /tmp/ci_logs/all_collections.json")
log.info(f"write {len(all_collections)} collections to /tmp/ci_logs/deploy_test_all_collections.json")
collections_in_json = get_collections()
assert len(all_collections) == len(collections_in_json)