mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-11-30 02:48:45 +08:00
test: Use Strong consistency level verifying count(*) (#32031)
See also #32030 Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
This commit is contained in:
parent
7e0d03420e
commit
0fa8c2efd6
@ -2036,8 +2036,7 @@ class TestDeleteVector(TestBase):
|
||||
rsp = self.vector_client.vector_delete(payload)
|
||||
|
||||
# query data after delete
|
||||
time.sleep(1)
|
||||
res = c.query(expr="", output_fields=["count(*)"])
|
||||
res = c.query(expr="", output_fields=["count(*)"], consistency_level="Strong")
|
||||
logger.info(f"res: {res}")
|
||||
assert res[0]["count(*)"] == 0
|
||||
|
||||
@ -2097,8 +2096,7 @@ class TestDeleteVector(TestBase):
|
||||
rsp = self.vector_client.vector_delete(payload)
|
||||
|
||||
# query data after delete
|
||||
time.sleep(1)
|
||||
res = c.query(expr="", output_fields=["count(*)"])
|
||||
res = c.query(expr="", output_fields=["count(*)"], consistency_level="Strong")
|
||||
logger.info(f"res: {res}")
|
||||
assert res[0]["count(*)"] == 0
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user