-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix flaky tests in AsyncTest (#1076)
Ensure that the tests all pass consistently by canceling the futures in the tests where we expect to timeout before the tasks complete. Without canceling them, tests which call methods in Async that use the common ForkJoinPool can be blocked by tasks that are still executing from previous tests! So, in the three tests where waitFor/waitForAll/waitForAllIgnoringTypes time out before the tasks complete, wrap the assertions in a try/finally and cancel the futures in the finally block. This commit also removes the RetryingTest annotations on the four tests which had them and replaces them with the standard JUnit Test annotation. Hopefully this will be the last time we ever need to deal with flaky tests in Async. Closes #1070
- Loading branch information
1 parent
6ea5385
commit 7b13e28
Showing
1 changed file
with
102 additions
and
78 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