Merge "Test flaky test: Always wait for handle task to complete"
This commit is contained in:
committed by
Android (Google) Code Review
commit
93ceee8684
@@ -484,9 +484,6 @@ public class UserControllerTest {
|
||||
|
||||
private void waitForHandlerToComplete(Handler handler, long waitTimeMs)
|
||||
throws InterruptedException {
|
||||
if (!handler.hasMessagesOrCallbacks()) { // if nothing queued, do not wait.
|
||||
return;
|
||||
}
|
||||
final Object lock = new Object();
|
||||
synchronized (lock) {
|
||||
handler.post(() -> {
|
||||
|
||||
Reference in New Issue
Block a user