未验证 提交 3920f642 编写于 作者: N NicoYuan1986 提交者: GitHub

Fix the error of the search case reporting unmatched limit (#18980)

Signed-off-by: N“nico” <cheng.yuan@zilliz.com>
Signed-off-by: N“nico” <cheng.yuan@zilliz.com>
上级 2fa174ef
......@@ -1778,16 +1778,12 @@ class TestCollectionSearch(TestcaseBase):
res = collection_w.search(binary_vectors[:nq], "binary_vector",
search_params, default_limit, "int64 >= 0",
_async=_async,
travel_timestamp=time_stamp,
check_task=CheckTasks.check_search_results,
check_items={"nq": nq,
"ids": insert_ids,
"limit": default_limit,
"_async": _async})[0]
travel_timestamp=time_stamp)[0]
if _async:
res.done()
res = res.result()
assert res[0].distances[0] == 0.0
assert len(res) <= default_limit
@pytest.mark.tags(CaseLabel.L2)
@pytest.mark.parametrize("index", ["BIN_FLAT"])
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册