dimberman commented on a change in pull request #7507: [AIRFLOW-6885] Delete 
worker on success
URL: https://github.com/apache/airflow/pull/7507#discussion_r383020463
 
 

 ##########
 File path: tests/executors/test_kubernetes_executor.py
 ##########
 @@ -260,7 +260,7 @@ def test_change_state_failed(self, mock_delete_pod, 
mock_get_kube_client, mock_k
         key = ('dag_id', 'task_id', 'ex_time', 'try_number3')
         executor._change_state(key, State.FAILED, 'pod_id')
         self.assertTrue(executor.event_buffer[key] == State.FAILED)
-        mock_delete_pod.assert_called_once_with('pod_id')
+        mock_delete_pod.assert_not_called()
 
 Review comment:
   @kaxil fixed it. Was a bug in the edits.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to