TestDownloadManagerListener: Fix blockUntilIdle
PiperOrigin-RevId: 308985567
This commit is contained in:
parent
922b8a2c15
commit
a90f30a6cd
@ -67,10 +67,10 @@ public final class TestDownloadManagerListener implements DownloadManager.Listen
|
||||
() -> {
|
||||
if (downloadManager.isIdle()) {
|
||||
idleCondition.open();
|
||||
checkedOnMainThread.open();
|
||||
}
|
||||
checkedOnMainThread.open();
|
||||
});
|
||||
checkedOnMainThread.block(TIMEOUT_MS);
|
||||
assertThat(checkedOnMainThread.block(TIMEOUT_MS)).isTrue();
|
||||
assertThat(idleCondition.block(TIMEOUT_MS)).isTrue();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user