Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix random failing JobTest#testSetRule eclipse-platform#1038
The test case JobTest#testSetRule randomly fails because the used short-running job, on which a rule is set, may finish before the test attempts to set a rule on it. This change rewrites the test to: - Use a long-running job to ensure that it does not finish too early - Properly wait for the job to start running once it has been woken up - Use proper assertions with helpful error messages - Does not silently proceed once an unexpected exception occurred. Fixes eclipse-platform#1038
- Loading branch information