SameerMesiah97 commented on code in PR #64372:
URL: https://github.com/apache/airflow/pull/64372#discussion_r3005369203


##########
providers/elasticsearch/tests/unit/elasticsearch/log/test_es_task_handler.py:
##########
@@ -655,7 +654,6 @@ def test_es_read_builds_expected_query(self, ti):
 
         response = self.elasticsearch_io._es_read(log_id, 2, ti)
 
-        
self.elasticsearch_io.client.count.assert_called_once_with(index="airflow-logs-*",
 query=query)
         self.elasticsearch_io.client.search.assert_called_once_with(

Review Comment:
   Non-blocking suggestion: Maybe you can add a negative assert for `count() 
`here like this:
   
   `self.elasticsearch_io.client.count.assert_not_called()`



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to