diff --git a/tests/restful_client_v2/testcases/test_vector_operations.py b/tests/restful_client_v2/testcases/test_vector_operations.py index 69908d36fc442..3663057c08160 100644 --- a/tests/restful_client_v2/testcases/test_vector_operations.py +++ b/tests/restful_client_v2/testcases/test_vector_operations.py @@ -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 @@ -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