forked from eclipse-platform/eclipse.platform
-
Notifications
You must be signed in to change notification settings - Fork 0
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 RelaxedSchedRuleBuilderTest.*343256 eclipse-platfo…
…rm#136 The test case RelaxedSchedRuleBuilderTest.testBuilderDeltaUsingRelaxedRuleBug343256 performs a workspace change between calling getRule and build when performing a build operation to ensure that build properly considers changes performed in between. To ensure that the job performing a workspace change is scheduled in between executing getRule and build, getRule ends with a sleep to ensure that the workspace-changing job reaches a point where it acquires a lock in between, so it is scheduled before the build operation. Whenever the sleep is not sufficiently long, the test fails. This change makes the getRule operation finish when the workspace-changing job has acquired a lock instead of waiting for a specific amount of time. This ensure that the build operation is always scheduled after the workspace-changing job.
- Loading branch information
1 parent
962759a
commit c70d131
Showing
1 changed file
with
62 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters