Allow a longer timeout on stopping background job
This commit is contained in:
@@ -48,6 +48,10 @@ public class SplitInterruptedJobParserTests extends AbstractJobParserTests {
|
||||
Thread.sleep(100L);
|
||||
jobExecution.setStatus(BatchStatus.STOPPING);
|
||||
Thread.sleep(200L);
|
||||
int count = 0;
|
||||
while(jobExecution.getStatus()==BatchStatus.STOPPING && count++<10) {
|
||||
Thread.sleep(200L);
|
||||
}
|
||||
|
||||
assertEquals(BatchStatus.STOPPED, jobExecution.getStatus());
|
||||
assertEquals(ExitStatus.STOPPED.getExitCode(), jobExecution.getExitStatus().getExitCode());
|
||||
|
||||
Reference in New Issue
Block a user