-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix AbstractJobTest#waitForCompletion() and Bug_32039#testBug() #1115
The test case Bug_32039#testBug() randomly fails because * AbstractJobTest#waitForCompletion() is can succeed even if the job is not complete and * Bug_32039#testBug() does not ensure a proper execution order of rule acquisitions This change fixes the waitForCompletion() method in terms of enforcing a Duration instead of an integer to be passed as a timeout to avoid faulty units and in terms of really throwing an exception of the job does not complete (in time). It also ensures that the rule acquisition in the Bug_32039#testBug() method always happens in the same order. Since the correction of waitForCompletion() reveals that IJobManagerTest#testBug57656() and IJobManagerTest#testScheduleRace() contained bugs that made the test rely on waitForCompletion() not working properly, they are fixed as well by correcting the job execution times and terminate conditions. Fixes #1115
- Loading branch information
1 parent
e9f9536
commit 583ce4a
Showing
5 changed files
with
50 additions
and
30 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
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
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
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
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