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:
congqixia 2024-04-09 10:05:17 +08:00 committed by GitHub
parent 7e0d03420e
commit 0fa8c2efd6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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