From c9ac005257d5ab711255121f556803e2ace2544d Mon Sep 17 00:00:00 2001 From: zhuwenxing Date: Wed, 29 Mar 2023 10:54:01 +0800 Subject: [PATCH] [test]Update the way to get collections of deploy test (#23077) Signed-off-by: zhuwenxing --- tests/python_client/deploy/common.py | 2 +- .../python_client/deploy/testcases/test_get_all_collections.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/python_client/deploy/common.py b/tests/python_client/deploy/common.py index 184780d197..c6df7022c1 100644 --- a/tests/python_client/deploy/common.py +++ b/tests/python_client/deploy/common.py @@ -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: diff --git a/tests/python_client/deploy/testcases/test_get_all_collections.py b/tests/python_client/deploy/testcases/test_get_all_collections.py index 328c0a69f9..237fc1fa0a 100644 --- a/tests/python_client/deploy/testcases/test_get_all_collections.py +++ b/tests/python_client/deploy/testcases/test_get_all_collections.py @@ -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)