未验证 提交 1c87e216 编写于 作者: N NicoYuan1986 提交者: GitHub

Update pymilvus version and modify some test cases (#21868)

Signed-off-by: Nnico <cheng.yuan@zilliz.com>
上级 8af2aebb
......@@ -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.3.0.dev24
pymilvus==2.3.0.dev26
pytest-rerunfailures==9.1.1
git+https://github.com/Projectplace/pytest-tags
ndg-httpsclient
......
......@@ -1290,7 +1290,8 @@ class TestCompactionOperation(TestcaseBase):
replicas = collection_w.get_replicas()[0]
replica_num = len(replicas.groups)
seg_info = self.utility_wrap.get_query_segment_info(collection_w.name)[0]
assert len(seg_info) != 1*replica_num
if not (len(seg_info) == 1*replica_num or len(seg_info) == 2*replica_num):
assert False
@pytest.mark.tags(CaseLabel.L2)
def test_compact_during_search(self):
......
......@@ -1036,7 +1036,6 @@ class TestQueryParams(TestcaseBase):
assert query_res == res
@pytest.mark.tags(CaseLabel.L2)
@pytest.mark.skip("issue #21223")
@pytest.mark.parametrize("offset", [3000, 5000])
def test_query_pagination_with_offset_over_num_entities(self, offset):
"""
......@@ -1049,7 +1048,8 @@ class TestQueryParams(TestcaseBase):
int_values = vectors[0][ct.default_int64_field_name].values.tolist()
pos = 10
term_expr = f'{ct.default_int64_field_name} in {int_values[10: pos + 10]}'
collection_w.query(term_expr, offset=offset, limit=10)
res = collection_w.query(term_expr, offset=offset, limit=10)[0]
assert len(res) == 0
@pytest.mark.tags(CaseLabel.L2)
@pytest.mark.parametrize("limit", ["12 s", " ", [0, 1], {2}])
......
......@@ -3798,7 +3798,6 @@ class TestsearchPagination(TestcaseBase):
@pytest.mark.tags(CaseLabel.L1)
@pytest.mark.parametrize("limit", [10, 20])
@pytest.mark.skip("issue #21444")
def test_search_with_pagination(self, offset, auto_id, limit, _async):
"""
target: test search with pagination
......@@ -3833,7 +3832,6 @@ class TestsearchPagination(TestcaseBase):
assert set(search_res[0].ids) == set(res[0].ids[offset:])
@pytest.mark.tags(CaseLabel.L1)
@pytest.mark.skip("issue #21444")
def test_search_string_with_pagination(self, offset, auto_id, _async):
"""
target: test search string with pagination
......@@ -3997,7 +3995,6 @@ class TestsearchPagination(TestcaseBase):
assert set(search_res[0].ids) == set(res[0].ids[offset:])
@pytest.mark.tags(CaseLabel.L2)
@pytest.mark.skip("issue #21444")
def test_search_pagination_with_index_partition(self, offset, auto_id, _async):
"""
target: test search pagination with index and partition
......@@ -4161,7 +4158,6 @@ class TestsearchPagination(TestcaseBase):
@pytest.mark.parametrize("index, params",
zip(ct.all_index_types[:7],
ct.default_index_params[:7]))
@pytest.mark.skip("issue #21444")
def test_search_pagination_after_different_index(self, index, params, auto_id, offset, _async):
"""
target: test search pagination after different index
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册