Skip to content

Commit

Permalink
test: Use Strong consistency level verifying count(*) (milvus-io#32031)
Browse files Browse the repository at this point in the history
See also milvus-io#32030

Signed-off-by: Congqi Xia <[email protected]>
  • Loading branch information
congqixia authored Apr 9, 2024
1 parent 7e0d034 commit 0fa8c2e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/restful_client_v2/testcases/test_vector_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -2036,8 +2036,7 @@ def test_delete_vector_by_custom_pk_field(self):
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

Expand Down Expand Up @@ -2097,8 +2096,7 @@ def test_delete_vector_by_filter_custom_field(self):
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

Expand Down

0 comments on commit 0fa8c2e

Please sign in to comment.