dybyte commented on code in PR #10456:
URL: https://github.com/apache/seatunnel/pull/10456#discussion_r2782248208
##########
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:
> It seems that this test can now verify this fix.
Yes. I think this test can also simulate the pending state and verify the
fix properly.
--
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]