Build #495

Gradle build for Spring Batch

Build: #495 was successful Changes by Mahmoud Ben Hassine

Build result summary

Details

Completed
Duration
8 minutes
Labels
None
Agent
bamboo-07.af.pivotal.io
Revision
90a89c1b02edecb596005efb8ad23e144af490bb 90a89c1b02edecb596005efb8ad23e144af490bb
Total tests
3717
First to pass since
#481 (Changes by Drummond Dawson <drumonii@users.noreply.github.com>)

Code commits

Author Commit Message Commit date
Mahmoud Ben Hassine Mahmoud Ben Hassine 90a89c1b02edecb596005efb8ad23e144af490bb 90a89c1b02edecb596005efb8ad23e144af490bb Fix JobOperatorFunctionalTests#testMultipleSimultaneousInstances
The `testMultipleSimultaneousInstances` test uses a SimpleAsyncTaskExecutor.
This means when a job is submitted, a new thread will be created to run
the job. However, there could be a small time interval between
JobOperator.startNextInstance(job) and
JobOperator.findRunningExecutions(job) where the job execution is created
but not started yet. When this happens, the test fails as
`findRunningExecutions` does not return the just created
(but not started yet) execution.

This commit adds a `Thread.sleep` between these two invocations in order
to give a chance to the background thread (to be created and) to execute
the job.

Tests

Fixed tests 1
Status Test Failing since View job Duration
Successful JobOperatorFunctionalTests testMultipleSimultaneousInstances History
Failing since build #491 (Changes by Mahmoud Ben Hassine) Default Job 1 sec