Commit a90f30a6 by olly Committed by Oliver Woodman

TestDownloadManagerListener: Fix blockUntilIdle

PiperOrigin-RevId: 308985567
parent 922b8a2c
...@@ -67,10 +67,10 @@ public final class TestDownloadManagerListener implements DownloadManager.Listen ...@@ -67,10 +67,10 @@ public final class TestDownloadManagerListener implements DownloadManager.Listen
() -> { () -> {
if (downloadManager.isIdle()) { if (downloadManager.isIdle()) {
idleCondition.open(); idleCondition.open();
checkedOnMainThread.open();
} }
checkedOnMainThread.open();
}); });
checkedOnMainThread.block(TIMEOUT_MS); assertThat(checkedOnMainThread.block(TIMEOUT_MS)).isTrue();
assertThat(idleCondition.block(TIMEOUT_MS)).isTrue(); assertThat(idleCondition.block(TIMEOUT_MS)).isTrue();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment