From 879ed56d20797ab496ca170a3f5dc4a7a32e0878 Mon Sep 17 00:00:00 2001 From: binbin <83755740+binbinlv@users.noreply.github.com> Date: Sat, 23 Oct 2021 16:48:00 +0800 Subject: [PATCH] [skip ci] Add test logs (#10494) Signed-off-by: Binbin Lv --- tests/python_client/testcases/test_utility.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/python_client/testcases/test_utility.py b/tests/python_client/testcases/test_utility.py index d44418cc05..e6016702ec 100644 --- a/tests/python_client/testcases/test_utility.py +++ b/tests/python_client/testcases/test_utility.py @@ -1260,6 +1260,7 @@ class TestUtilityBase(TestcaseBase): method: set right vectors as random vectors, left vectors are entities expected: distance calculated successfully """ + log.info("Create connection") self._connect() nb = 10 collection_w, vectors, _, insert_ids, _ = self.init_collection_general(prefix, True, nb, partition_num=1) @@ -1272,10 +1273,12 @@ class TestUtilityBase(TestcaseBase): end = middle for i in range(len(partitions)): vectors_l = vectors[i].loc[:, default_field_name] + log.info("Extract entities from partition %d as left vector" % i) op_l = {"ids": insert_ids[start:end], "collection": collection_w.name, "partition": partitions[i].name, "field": default_field_name} start += middle end += middle + log.info("Calculate distance between vector and entities from partition %d" % i) self.utility_wrap.calc_distance(op_l, op_r, params, check_task=CheckTasks.check_distance, check_items={"vectors_l": vectors_l,