mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-02-02 01:06:41 +08:00
test: fix query result verification (#30351)
fix query result verification: changed the query expression and adopted a more lenient validation method to address the issue of not being able to guarantee the retrieval of specific IDs due to frequent deletion operation Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
This commit is contained in:
parent
fb9d64ab1e
commit
e6daff49a6
@ -132,9 +132,9 @@ class TestAllCollection(TestcaseBase):
|
||||
assert len(res[0]) <= topk
|
||||
|
||||
# query
|
||||
term_expr = f'{int64_field_name} in [1, 2, 3, 4]'
|
||||
term_expr = f'{int64_field_name} > -3000'
|
||||
t0 = time.time()
|
||||
res, _ = collection_w.query(term_expr)
|
||||
tt = time.time() - t0
|
||||
log.info(f"assert query result {len(res)}: {tt}")
|
||||
assert len(res) >= 4
|
||||
assert len(res) > 0
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user