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


##########
providers/airbyte/tests/unit/airbyte/operators/test_airbyte.py:
##########
@@ -126,9 +133,21 @@ def test_on_kill(self, mock_cancel_job, 
mock_get_job_status, create_connection_w
             connection_id=self.connection_id,
             wait_seconds=self.wait_seconds,
             timeout=self.timeout,
+            deferrable=True,
         )
-        op.job_id = self.job_id
-        op.on_kill()
 
-        mock_cancel_job.assert_called_once_with(self.job_id)
-        mock_get_job_status.assert_called_once_with(self.job_id)
+        timeout_event = {
+            "status": "timeout",
+            "message": "Job run 1 has reached execution timeout.",
+            "job_id": self.job_id,
+        }
+
+        with pytest.raises(RuntimeError, match="has reached execution 
timeout"):

Review Comment:
   This test was included in the original commit but was removed after previous 
reviews. It has now been re-introduced.



-- 
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