You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/02/23 16:51:47 UTC
[GitHub] [airflow] dimberman commented on a change in pull request #7507:
[AIRFLOW-6885] Delete worker on success
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:
users@infra.apache.org
With regards,
Apache Git Services