mirror of https://github.com/milvus-io/milvus.git
[skip ci] Add log for test case (#9741)
Signed-off-by: Binbin Lv <binbin.lv@zilliz.com>pull/9748/head
parent
1f224c4b2e
commit
7206f9773e
|
@ -1106,6 +1106,7 @@ class TestUtilityBase(TestcaseBase):
|
|||
method: set left vectors as random vectors, right vectors from collection
|
||||
expected: distance calculated successfully
|
||||
"""
|
||||
log.info("Creating connection")
|
||||
self._connect()
|
||||
nb = 10
|
||||
collection_w, vectors, _, insert_ids = self.init_collection_general(prefix, True, nb)
|
||||
|
@ -1116,9 +1117,11 @@ class TestUtilityBase(TestcaseBase):
|
|||
for i in range(middle):
|
||||
vectors_r.append(vectors[middle + i])
|
||||
op_l = {"float_vectors": vectors_l}
|
||||
log.info("Extracting entities form collections for distance calculating")
|
||||
op_r = {"ids": insert_ids[middle:], "collection": collection_w.name,
|
||||
"field": default_field_name}
|
||||
params = {metric_field: metric, "sqrt": sqrt}
|
||||
log.info("Calculating distance between vectors and entities")
|
||||
self.utility_wrap.calc_distance(op_l, op_r, params,
|
||||
check_task=CheckTasks.check_distance,
|
||||
check_items={"vectors_l": vectors_l,
|
||||
|
|
Loading…
Reference in New Issue