-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changing the implementation of UiThreadPosterTestDouble such that it …
…will not allow any posted Runnables to run before call to join(). In addition, the new implementation allows for tests with "nested" posting of Runnables to UiThreadPosterTestDouble (i.e. when one posted Runnable posts additional Runnables). This change is required in order to prevent some code to be executed while the tests that use UiThreadPosterTestDouble are still being set up, thus leading to inconsistent results. Now, it's guaranteed that no side effects of Runnables posted UiThreadPosterTestDouble will be visible until a call to join().
- Loading branch information
1 parent
5dfc9e4
commit a8a79ae
Showing
2 changed files
with
69 additions
and
99 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