test: update pymilvus version and modify test cases (#32572)

issue: #32376

Signed-off-by: binbin lv <binbin.lv@zilliz.com>
This commit is contained in:
binbin 2024-04-25 08:57:31 +08:00 committed by GitHub
parent b703d6cdbe
commit 5119292411
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -12,7 +12,7 @@ allure-pytest==2.7.0
pytest-print==0.2.1
pytest-level==0.1.1
pytest-xdist==2.5.0
pymilvus==2.5.0rc15
pymilvus==2.5.0rc17
pytest-rerunfailures==9.1.1
git+https://github.com/Projectplace/pytest-tags
ndg-httpsclient

View File

@ -11550,14 +11550,14 @@ class TestCollectionHybridSearchValid(TestcaseBase):
"expr": "int64 > 0"}
req = AnnSearchRequest(**search_param)
req_list.append(req)
hybrid_res = collection_w.hybrid_search(req_list, rerank, default_limit,
hybrid_res = collection_w.hybrid_search(req_list, rerank, default_limit-offset,
offset=offset,
check_task=CheckTasks.check_search_results,
check_items={"nq": 1,
"ids": insert_ids,
"limit": default_limit})[0]
"limit": default_limit-offset})[0]
assert hybrid_res_inside[0].distances == hybrid_res[0].distances
assert hybrid_res_inside[0].distances[offset:] == hybrid_res[0].distances
@pytest.mark.tags(CaseLabel.L2)
def test_hybrid_search_RRFRanker_empty_reqs(self):