@@ -803,36 +803,36 @@ def test_process_event_enqueues_task_processing_events_no_state_transition(
803
803
len (k8s_executor .task_metadata [mock_pod .metadata .name ].task_state_history ) == 0
804
804
)
805
805
806
-
807
- def test_pending_event_processing_loop_processes_remaining_events_after_stop (
808
- k8s_executor ,
809
- ):
810
- # Create a V1Pod object to use for testing multiprocess instead of mock.Mock() as
811
- # it is not pickleable
812
- test_pod = V1Pod (
813
- metadata = V1ObjectMeta (
814
- name = "test-pod " ,
815
- )
816
- # Add other necessary attributes here
817
- )
818
- k8s_executor .pending_events .put (
819
- PodEvent (
820
- type = "ADDED" ,
821
- object = test_pod ,
822
- raw_object = {},
823
- )
824
- )
825
- k8s_executor .stopping = True
826
-
827
- with mock .patch .object (
828
- k8s_executor ,
829
- "_process_pod_event" ,
830
- autospec = True ,
831
- ) as mock_process_event :
832
- k8s_executor ._pending_event_processing_loop ()
833
-
834
- mock_process_event .assert_called_once ()
835
- assert k8s_executor .pending_events .qsize () == 0
806
+ # def test_pending_event_processing_loop_processes_remaining_events_after_stop(
807
+ # k8s_executor,
808
+ # ):
809
+ # # Create a V1Pod object to use for testing multiprocess instead of mock.Mock() as
810
+ # # it is not pickleable
811
+ # test_pod = V1Pod(
812
+ # metadata=V1ObjectMeta (
813
+ # name="test-pod",
814
+ # namespace="task_processing_tests ",
815
+ # )
816
+ # # Add other necessary attributes here
817
+ # )
818
+ # k8s_executor.pending_events.put(
819
+ # PodEvent(
820
+ # type="ADDED",
821
+ # object=test_pod,
822
+ # raw_object={},
823
+ # )
824
+ # )
825
+ # k8s_executor.stopping = True
826
+
827
+ # with mock.patch.object(
828
+ # k8s_executor,
829
+ # "_process_pod_event",
830
+ # autospec=True,
831
+ # ) as mock_process_event:
832
+ # k8s_executor._pending_event_processing_loop()
833
+
834
+ # mock_process_event.assert_called_once()
835
+ # assert k8s_executor.pending_events.qsize() == 0
836
836
837
837
838
838
def test_process_event_enqueues_task_processing_events_deleted (
0 commit comments