xiaochen-zhou commented on code in PR #10456:
URL: https://github.com/apache/seatunnel/pull/10456#discussion_r2777463305


##########
seatunnel-engine/seatunnel-engine-server/src/test/java/org/apache/seatunnel/engine/server/CoordinatorServiceTest.java:
##########
@@ -336,6 +337,26 @@ void 
testCleanupPendingJobMasterMapWhenJobSubmitFutureIsExceptionally() {
                                                 
.contains(jobInformation.jobId)));
     }
 
+    @Test
+    void testGetPendingJobInfo() {
+        JobInformation jobInformation =
+                submitJob(
+                        "CoordinatorServiceTest_testGetPendingJobInfo",
+                        "batch_fake_to_console.conf",
+                        "test_get_pending_job_info");
+
+        CoordinatorService coordinatorService = 
jobInformation.coordinatorService;
+        Long jobId = jobInformation.jobId;
+
+        
Assertions.assertTrue(coordinatorService.getPendingJobQueue().contains(jobId));

Review Comment:
   We should simulate a task being pending by setting a fixed slot mode. You 
can refer to the implementation of the 
CoordinatorServiceTest#testCleanupPendingJobMasterMapAfterJobFailed()



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